From: Martin Mares Date: Tue, 24 Mar 2009 22:07:54 +0000 (+0100) Subject: Libucw: Fixed a bug in logging of 8-bit characters. X-Git-Tag: holmes-import~29 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=cc46f4b8a7e26ad47a8f2f7728be9dc16e12451b;p=libucw.git Libucw: Fixed a bug in logging of 8-bit characters. --- diff --git a/ucw/log.c b/ucw/log.c index 419c5e9f..1195a0a5 100644 --- a/ucw/log.c +++ b/ucw/log.c @@ -153,7 +153,7 @@ vmsg(uns cat, const char *fmt, va_list args) p = m.raw_msg; while (*p) { - if (*p < 0x20 && *p != '\t') + if (*p >= 0 && *p < 0x20 && *p != '\t') *p = 0x7f; p++; }