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; }