diff --git a/src/lib/encrypter.c b/src/lib/encrypter.c index 58f1012..14ac9e0 100644 --- a/src/lib/encrypter.c +++ b/src/lib/encrypter.c @@ -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); } }