[PATCH] blkid: small fix for safe_print()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This small fix makes it possible to print the first unprintable character
with code 128 from ASCII table.

Signed-off-by: Sergey Gusarov <laborer2008@xxxxxxxxx>

--- util-linux-2.19/misc-utils/blkid.c.orig	2011-03-25 16:16:02.810038390 +0300
+++ util-linux-2.19/misc-utils/blkid.c	2011-03-25 16:16:12.230035278 +0300
@@ -104,7 +104,7 @@ static void safe_print(const char *cp, i

 	while (len--) {
 		ch = *cp++;
-		if (ch > 128) {
+		if (ch >= 128) {
 			fputs("M-", stdout);
 			ch -= 128;
 		}
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux