Skip to content

Commit

Permalink
cleanup(libsinsp): update g_invalidchar for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <[email protected]>
  • Loading branch information
LucaGuerra committed Aug 2, 2024
1 parent 2e87063 commit 6011d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ struct g_invalidchar
{
// Exclude all non-printable characters and control characters while
// including a wide range of languages (emojis, cyrillic, chinese etc)
return !(isprint((unsigned)c));
return (c < -1 || c > 255 || !(isprint((unsigned)c)));
}
};

Expand Down

0 comments on commit 6011d2d

Please sign in to comment.