From addeae15749cc45fabc9464a11d81ff266134381 Mon Sep 17 00:00:00 2001 From: visuve Date: Fri, 2 Sep 2022 18:06:58 +0300 Subject: [PATCH] Fix bug - ``sizeof(input)`` will return size of the input pointer, (i.e. 4 or 8) not the length of the data --- src/Format/Tcformat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index db0a820949..2b8ec8e7ab 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -11370,12 +11370,12 @@ int PrintStrongness (char input[], unsigned int length) int iReturnValue = 0; if (n < 10) { - burn (input, sizeof(input)); + burn (input, n); return iReturnValue = weak; } else if (CheckWord(input)) { - burn (input, sizeof(input)); + burn (input, n); return iReturnValue = weak; } //Tetermine the strength of the passsord @@ -11397,7 +11397,7 @@ int PrintStrongness (char input[], unsigned int length) { iReturnValue = weak; } - burn (input, sizeof(input)); + burn (input, n); return iReturnValue; }