simplified cleaning allocated returningText with memset

now in decrypter
This commit is contained in:
Václav Šmejkal 2022-12-10 15:39:26 +01:00
parent 38956cce14
commit ef3557333a
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -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++)