From 201211010af5be065af7618638125ee0a6096a00 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 9 Dec 2022 18:43:10 +0100 Subject: [PATCH] fixed possible NULL char problems --- src/core/lib/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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