summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2006-07-31 14:17:04 +0000
committerjkoshy <jkoshy@FreeBSD.org>2006-07-31 14:17:04 +0000
commitc03b5b6d66f1401e8568af8315e42f067d101677 (patch)
treee2518f66f43049f3e32014ed38a627d03c64e094 /usr.bin
parentf262d22153f6d81f22e467df578baf0b85614de3 (diff)
downloadFreeBSD-src-c03b5b6d66f1401e8568af8315e42f067d101677.zip
FreeBSD-src-c03b5b6d66f1401e8568af8315e42f067d101677.tar.gz
In 'od -c' mode, deal with printable but zero-width combining
characters correctly. These characters are displayed "combined" with a space character. PR: misc/100215 Submitted by: "J.R. Oldroyd" <<fbsd AT opal.com>> Reviewed by: "J.R. Oldroyd" <<fbsd AT opal.com>> (revised patch) MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/hexdump/conv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/hexdump/conv.c b/usr.bin/hexdump/conv.c
index 9668780..96dc2d6 100644
--- a/usr.bin/hexdump/conv.c
+++ b/usr.bin/hexdump/conv.c
@@ -134,7 +134,7 @@ retry:
*pr->cchar = 'C';
assert(strcmp(pr->fmt, "%3C") == 0);
width = wcwidth(wc);
- assert(width > 0);
+ assert(width >= 0);
pad = 3 - width;
if (pad < 0)
pad = 0;
OpenPOWER on IntegriCloud