mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
fsck_util: fix escape_control_chars()
Argument passed to iscntrl() must be representable as unsigned char.
This commit is contained in:
parent
c1b8267939
commit
3de5006ae5
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ escape_control_chars (
|
|||
) {
|
||||
int cnt = 0;
|
||||
for (char *end = stpncpy(dst, src, dst_max); dst < end; ++dst) {
|
||||
if (iscntrl(*dst)) {
|
||||
if (iscntrl((unsigned char)(*dst))) {
|
||||
*dst = ch;
|
||||
++cnt;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue