diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-27 20:47:01 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-27 20:47:01 +0100 |
commit | 710b6ce9b0dba1b13028e7205bade70eefc2543f (patch) | |
tree | d30fd73f6336e29ebdb56938e66622a2f64e6307 /util-linux/fdisk_gpt.c | |
parent | 29516ac0e41fc41dd15b7d0c67bd160f03d21bbb (diff) | |
download | busybox-w32-710b6ce9b0dba1b13028e7205bade70eefc2543f.tar.gz busybox-w32-710b6ce9b0dba1b13028e7205bade70eefc2543f.tar.bz2 busybox-w32-710b6ce9b0dba1b13028e7205bade70eefc2543f.zip |
fdisk_gpt: simplify GPT partition name printing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/fdisk_gpt.c')
-rw-r--r-- | util-linux/fdisk_gpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk_gpt.c b/util-linux/fdisk_gpt.c index 9b17b4a57..45d2aa6e7 100644 --- a/util-linux/fdisk_gpt.c +++ b/util-linux/fdisk_gpt.c | |||
@@ -94,11 +94,11 @@ gpt_print_wide36(uint16_t *s) | |||
94 | while (i < ARRAY_SIZE(buf)-1) { | 94 | while (i < ARRAY_SIZE(buf)-1) { |
95 | if (s[i] == 0) | 95 | if (s[i] == 0) |
96 | break; | 96 | break; |
97 | buf[i] = (s[i] < 0x7f) ? s[i] : '?'; | 97 | buf[i] = (0x20 <= s[i] && s[i] < 0x7f) ? s[i] : '?'; |
98 | i++; | 98 | i++; |
99 | } | 99 | } |
100 | buf[i] = '\0'; | 100 | buf[i] = '\0'; |
101 | fputs(printable_string(NULL, buf), stdout); | 101 | fputs(buf, stdout); |
102 | #endif | 102 | #endif |
103 | } | 103 | } |
104 | 104 | ||