diff --git a/src/core/lib/decrypter.c b/src/core/lib/decrypter.c index c3ea320..e4947d1 100644 --- a/src/core/lib/decrypter.c +++ b/src/core/lib/decrypter.c @@ -130,10 +130,7 @@ outputFlags decryptText(char *text, char *keyNew) } //FIX (CLEAN) returningText - for (int i = 0; i <= textKeyChainLength; i++) - { - returningText[i] = '\0'; - } + memset(returningText, '\0', textKeyChainLength + 1); //LOAD returningText for (int i = 0; i < textKeyChainLength; i++)