added one byte to returningText allocation

This commit is contained in:
Václav Šmejkal 2022-12-10 15:02:00 +01:00
parent b4d1be73f9
commit edc78674d2
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -90,7 +90,7 @@ outputFlags encryptText(char *text, char *keyNew)
}
//ALLOCATE returningText (WITH THE SEPARATORS)
returningText = malloc(numberBuffer + strlen(text) - 1);
returningText = malloc(numberBuffer + strlen(text));
strcpy(returningText, "");
//LOAD returningText