From 2bd5f9556a6ef8d77a53ca42b9546c55aba6d563 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 7 Mar 2022 19:32:57 +0100 Subject: [PATCH] fixed memory leaking issue --- src/encrypter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encrypter.c b/src/encrypter.c index 4fb618f..d8b73d6 100644 --- a/src/encrypter.c +++ b/src/encrypter.c @@ -30,7 +30,7 @@ encryptText(char *text, char *keyNew) exit(INVALID_KEY); } - key = keyNew; + strcpy(key, keyNew); goto skipKey; }