summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/hexdump')
-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