From: darkcoven Date: Tue, 9 Sep 2014 14:10:39 +0000 (+0200) Subject: Raw: fix bug in isStringPrintable() X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63c275b6dd5fdbeef61eec3c264a09cf65882fb4;p=ngadmin Raw: fix bug in isStringPrintable() --- diff --git a/raw/src/str.c b/raw/src/str.c index 1ca2c44..5ae1fc8 100644 --- a/raw/src/str.c +++ b/raw/src/str.c @@ -106,7 +106,7 @@ bool isStringPrintable (const char *str, unsigned int len) const char *p; for (p = str; len > 0; len--) { - if (!isprint(*p)) + if (!isprint(*p++)) return false; }