Skip to content

Commit

Permalink
Fix gcc 13.2.1 (Fedora 39.1) warning: Writing of 1 byte into a region…
Browse files Browse the repository at this point in the history
… of size 0 [-Wstringop-overflow=]
  • Loading branch information
jan.nijtmans committed Feb 8, 2024
1 parent b2e7c5c commit 58afe92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/tclObj.c
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ ParseBoolean(
char lowerCase[6];
const char *str = TclGetStringFromObj(objPtr, &length);

if ((length == 0) || (length > 5)) {
if ((length < 1) || (length > 5)) {
/*
* Longest valid boolean string rep. is "false".
*/
Expand Down

0 comments on commit 58afe92

Please sign in to comment.