From edc78674d2485ae65a436b3007f092f0c9f735ad Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 10 Dec 2022 15:02:00 +0100 Subject: [PATCH] added one byte to returningText allocation --- src/core/lib/encrypter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/encrypter.c b/src/core/lib/encrypter.c index 7af746b..4214fa0 100644 --- a/src/core/lib/encrypter.c +++ b/src/core/lib/encrypter.c @@ -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