From 23dec2b310f63495ebebd0a5059200fed79e3953 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 18 Jun 2022 18:17:54 +0200 Subject: [PATCH] replaced ENCRYPTION_SEPARATOR_STRING usage for ENCRYPTION_SEPARATOR --- src/lib/encrypter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } }