From 305a6122514fa4ee33f8815fb649ebce03c20545 Mon Sep 17 00:00:00 2001 From: Sergey Gusarov Date: Fri, 25 Mar 2011 16:54:05 +0300 Subject: [PATCH] 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 --- misc-utils/blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3