]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkid: small fix for safe_print()
authorSergey Gusarov <laborer2008@gmail.com>
Fri, 25 Mar 2011 13:54:05 +0000 (16:54 +0300)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Mar 2011 15:07:24 +0000 (17:07 +0200)
This small fix makes it possible to print the first unprintable character
with code 128 from ASCII table.

Signed-off-by: Sergey Gusarov <laborer2008@gmail.com>
misc-utils/blkid.c

index c8c95b6b109e74bf633869a6662262df1dcf0927..51599f52e72e41b99af7d5d199d9308aad8f4210 100644 (file)
@@ -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;
                        }