diff options
Diffstat (limited to 'bin/ls')
-rw-r--r-- | bin/ls/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c index a7b8208..36122df 100644 --- a/bin/ls/util.c +++ b/bin/ls/util.c @@ -79,7 +79,8 @@ prn_normal(const char *s) for (i = 0; i < (int)clen; i++) putchar((unsigned char)s[i]); s += clen; - n += wcwidth(wc); + if (iswprint(wc)) + n += wcwidth(wc); } return (n); } |