From 003a5a5a7ed569764a924125d5773761e1f22011 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 9 Dec 2022 16:06:46 +0100 Subject: [PATCH] fixed loop shadowing outer variable --- src/core/lib/decrypter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/decrypter.c b/src/core/lib/decrypter.c index a580992..9f8f16f 100644 --- a/src/core/lib/decrypter.c +++ b/src/core/lib/decrypter.c @@ -111,9 +111,9 @@ outputFlags decryptText(char *text, char *keyNew) } //CLEAN (POSSIBLY EXISTING) JUNK in textBuffer - for (int i = 0; i <= numberBuffer; i++) + for (int j = 0; j <= numberBuffer; j++) { - textBuffer[i] = '\0'; + textBuffer[j] = '\0'; } //LOAD textBuffer