From: Denys Vlasenko Date: Sun, 27 Nov 2016 19:47:01 +0000 (+0100) Subject: fdisk_gpt: simplify GPT partition name printing X-Git-Tag: 1_26_0~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=710b6ce9b0dba1b13028e7205bade70eefc2543f;p=oweals%2Fbusybox.git fdisk_gpt: simplify GPT partition name printing Signed-off-by: Denys Vlasenko --- 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) 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 }