]> mj.ucw.cz Git - libucw.git/commitdiff
Libucw: Fixed a bug in logging of 8-bit characters.
authorMartin Mares <mj@ucw.cz>
Tue, 24 Mar 2009 22:07:54 +0000 (23:07 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 24 Mar 2009 22:07:54 +0000 (23:07 +0100)
ucw/log.c

index 419c5e9fcca30ef741f625b8ee7bf769894ea25f..1195a0a548a31e2f473a5256b06be2a2d7f41527 100644 (file)
--- 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++;
     }