Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
- ``sizeof(input)`` will return size of the input pointer, (i.e. 4 or 8) not the length of the data
  • Loading branch information
visuve committed Sep 2, 2022
1 parent 59e59fd commit addeae1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Format/Tcformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -11397,7 +11397,7 @@ int PrintStrongness (char input[], unsigned int length)
{
iReturnValue = weak;
}
burn (input, sizeof(input));
burn (input, n);
return iReturnValue;
}

Expand Down

0 comments on commit addeae1

Please sign in to comment.