projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29516ac
)
fdisk_gpt: simplify GPT partition name printing
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 27 Nov 2016 19:47:01 +0000
(20:47 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 27 Nov 2016 19:47:01 +0000
(20:47 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/fdisk_gpt.c
patch
|
blob
|
history
diff --git
a/util-linux/fdisk_gpt.c
b/util-linux/fdisk_gpt.c
index 9b17b4a57440073c5caa02cf5656a57f3d8ab98e..45d2aa6e72b6312cd4c41e0ac43f09567780ceac 100644
(file)
--- 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
}