fixed possible NULL char problems
This commit is contained in:
parent
90eef0bb21
commit
201211010a
@ -427,5 +427,5 @@ void generateKey(char *key, int keyLength)
|
||||
key[i] = (char) numberBuffer;
|
||||
}
|
||||
|
||||
key[getKeyLength()] = '\0';
|
||||
key[keyLength] = '\0';
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user