From 5e87e4612d8d0607a9d4cf63212166a887442acc Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 19 Jul 2022 17:22:12 +0200 Subject: [PATCH] simplified cleaning returningText in decrypter you stoopid --- src/lib/decrypter.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/decrypter.c b/src/lib/decrypter.c index b09b587..94d9606 100644 --- a/src/lib/decrypter.c +++ b/src/lib/decrypter.c @@ -112,11 +112,10 @@ outputFlags decryptText(char *text, char *keyNew) textKeyChain[i] -= encryptedTextKeyChain[i]; } - //FIX returningText - strcpy(returningText, ""); - for (int i = 0; i < textKeyChainLength; i++) + //FIX (CLEAN) returningText + for (int i = 0; i <= textKeyChainLength; i++) { - strcat(returningText, " "); + returningText[i] = '\0'; } //LOAD returningText