X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/18c831dcd0ae4d660c70ccac69d27ed2a97851be..3618811496a6d131fd4bffa19e262c521d39e819:/trace/trace.c diff --git a/trace/trace.c b/trace/trace.c index 2681cd3..e06bf7b 100644 --- a/trace/trace.c +++ b/trace/trace.c @@ -38,6 +38,7 @@ /* --- Local headers --- */ #include "dstr.h" +#include "macros.h" #include "quis.h" #include "trace.h" @@ -132,7 +133,7 @@ void trace_block(unsigned l, const char *s, const void *b, size_t sz) dstr_puts(&d, ": "); for (i = 0; i < 8; i++) { if (i < sz) - dstr_putc(&d, isprint(p[i]) ? p[i] : '.'); + dstr_putc(&d, ISPRINT(p[i]) ? p[i] : '.'); else dstr_putc(&d, '*'); }