diff --git a/src/core/lib/misc.c b/src/core/lib/misc.c index d31c8ab..9193ea3 100644 --- a/src/core/lib/misc.c +++ b/src/core/lib/misc.c @@ -427,5 +427,5 @@ void generateKey(char *key, int keyLength) key[i] = (char) numberBuffer; } - key[getKeyLength()] = '\0'; + key[keyLength] = '\0'; } \ No newline at end of file