From: Sergey Gusarov Date: Fri, 25 Mar 2011 13:54:05 +0000 (+0300) Subject: blkid: small fix for safe_print() X-Git-Tag: v2.20-rc1~419 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=305a6122514fa4ee33f8815fb649ebce03c20545;p=thirdparty%2Futil-linux.git blkid: small fix for safe_print() This small fix makes it possible to print the first unprintable character with code 128 from ASCII table. Signed-off-by: Sergey Gusarov --- diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index c8c95b6b10..51599f52e7 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -108,7 +108,7 @@ static void safe_print(const char *cp, int len) while (len--) { ch = *cp++; if (!raw_chars) { - if (ch > 128) { + if (ch >= 128) { fputs("M-", stdout); ch -= 128; }