diff --git a/src/core/lib/encrypter.c b/src/core/lib/encrypter.c index 0622ee8..26ae7ba 100644 --- a/src/core/lib/encrypter.c +++ b/src/core/lib/encrypter.c @@ -106,10 +106,7 @@ why2_output_flags why2_encrypt_text(char *text, char *keyNew) if (i != (int) strlen(text) - 1) { - textBuffer = why2_realloc(textBuffer, 2); - sprintf(textBuffer, "%c", why2_get_encryption_separator()); - - strcat(returningText, textBuffer); + returningText[strlen(returningText)] = why2_get_encryption_separator(); } }