From 39e174a874642eeeef15127e570d9c0579e3a57a Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 26 May 2022 17:45:10 +0200 Subject: [PATCH] removed unused memory size --- src/lib/encrypter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/encrypter.c b/src/lib/encrypter.c index a5ea709..5cb084d 100644 --- a/src/lib/encrypter.c +++ b/src/lib/encrypter.c @@ -14,7 +14,7 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags) if (!flags.skipCheck) checkVersion(flags); //VARIABLES - char *key = malloc(getKeyLength() + 1); + char *key = malloc(getKeyLength()); char *returningText; char *textBuffer; int *textKeyChain = malloc(sizeof(int) * strlen(text));