]> 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, 19 Apr 2011 11:09:52 +0000 (13:09 +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 0bf1962db22b8bc299d81b9f6e533bbc8ba5f792..4f5ce969942c403e430ef4cb44930a45d9d170bb 100644 (file)
@@ -104,7 +104,7 @@ static void safe_print(const char *cp, int len)
 
        while (len--) {
                ch = *cp++;
-               if (ch > 128) {
+               if (ch >= 128) {
                        fputs("M-", stdout);
                        ch -= 128;
                }