replaced ENCRYPTION_SEPARATOR_STRING usage for ENCRYPTION_SEPARATOR

This commit is contained in:
Václav Šmejkal 2022-06-18 18:17:54 +02:00
parent 227b933bc4
commit 23dec2b310
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -125,7 +125,10 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags)
if (i != strlen(text) - 1)
{
strcat(returningText, ENCRYPTION_SEPARATOR_STRING);
textBuffer = realloc(textBuffer, 2);
sprintf(textBuffer, "%c", ENCRYPTION_SEPARATOR);
strcat(returningText, textBuffer);
}
}