fixed memory problem

This commit is contained in:
Václav Šmejkal 2022-04-23 18:16:22 +02:00
parent 271afd53d3
commit e598a93d5d

View File

@ -102,6 +102,7 @@ encryptText(char *text, char *keyNew)
//ALLOCATE returningText (WITH THE SEPARATORS)
returningText = malloc(numberBuffer + (sizeof(textKeyChain) / sizeof(int) - 1));
strcpy(returningText, "");
//LOAD returningText
for (int i = 0; i < (sizeof(textKeyChain) / sizeof(int)); i++)