fixed possible NULL char problems

This commit is contained in:
Václav Šmejkal 2022-12-09 18:43:10 +01:00
parent 90eef0bb21
commit 201211010a
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -427,5 +427,5 @@ void generateKey(char *key, int keyLength)
key[i] = (char) numberBuffer;
}
key[getKeyLength()] = '\0';
key[keyLength] = '\0';
}