diff --git a/docs/man.txt b/docs/man.txt
index fa4639aa..e1af13fd 100644
--- a/docs/man.txt
+++ b/docs/man.txt
@@ -4552,7 +4552,6 @@ Parameters available:
(bool) consistent_lock_source - Maintain trigger as lock source in TESTLOCK
(str) cpennies - Currency name, capitalized, plural
(str) cpenny - Currency name, capitalized
- (str) create_fail_mesg - Failed player create message
(bool) dark_sleepers - Make sleeping players dark
(bool) dbdump_warning - Enable warnings for upcoming database dumps
(ref) default_room_parent - Place to parent new rooms to
diff --git a/docs/mufman.html b/docs/mufman.html
index 10b41004..92c8e1f2 100644
--- a/docs/mufman.html
+++ b/docs/mufman.html
@@ -7279,7 +7279,6 @@
SYSPARM ( s -- s )
(bool) consistent_lock_source - Maintain trigger as lock source in TESTLOCK
(str) cpennies - Currency name, capitalized, plural
(str) cpenny - Currency name, capitalized
- (str) create_fail_mesg - Failed player create message
(bool) dark_sleepers - Make sleeping players dark
(bool) dbdump_warning - Enable warnings for upcoming database dumps
(ref) default_room_parent - Place to parent new rooms to
diff --git a/src/fbmath.c b/src/fbmath.c
index a39451e4..59a6b665 100644
--- a/src/fbmath.c
+++ b/src/fbmath.c
@@ -591,11 +591,16 @@ PBKDF2_HMAC_SHA_512(const char* pass, const unsigned char* salt,
char* hexResult)
{
unsigned int i;
- unsigned char digest[outputBytes];
+ unsigned char* digest;
+
+ digest = (unsigned char*)malloc(outputBytes);
+
PKCS5_PBKDF2_HMAC(pass, strlen(pass), salt, strlen(salt), iterations,
EVP_sha512(), outputBytes, digest);
- for (i = 0; i < sizeof(digest); i++)
+ for (i = 0; i < outputBytes; i++)
sprintf(hexResult + (i * 2), "%02x", 255 & digest[i]);
+
+ free(digest);
}
#endif