summaryrefslogtreecommitdiff
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-27 19:47:01 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2016-11-27 19:47:01 (GMT)
commit710b6ce9b0dba1b13028e7205bade70eefc2543f (patch)
treed30fd73f6336e29ebdb56938e66622a2f64e6307
parent29516ac0e41fc41dd15b7d0c67bd160f03d21bbb (diff)
downloadbusybox-710b6ce9b0dba1b13028e7205bade70eefc2543f.zip
busybox-710b6ce9b0dba1b13028e7205bade70eefc2543f.tar.gz
busybox-710b6ce9b0dba1b13028e7205bade70eefc2543f.tar.bz2
fdisk_gpt: simplify GPT partition name printing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat
-rw-r--r--util-linux/fdisk_gpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk_gpt.c b/util-linux/fdisk_gpt.c
index 9b17b4a..45d2aa6 100644
--- a/util-linux/fdisk_gpt.c
+++ b/util-linux/fdisk_gpt.c
@@ -94,11 +94,11 @@ gpt_print_wide36(uint16_t *s)
while (i < ARRAY_SIZE(buf)-1) {
if (s[i] == 0)
break;
- buf[i] = (s[i] < 0x7f) ? s[i] : '?';
+ buf[i] = (0x20 <= s[i] && s[i] < 0x7f) ? s[i] : '?';
i++;
}
buf[i] = '\0';
- fputs(printable_string(NULL, buf), stdout);
+ fputs(buf, stdout);
#endif
}