diff options
Diffstat (limited to 'main/util-linux/hexdump.patch')
-rw-r--r-- | main/util-linux/hexdump.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/util-linux/hexdump.patch b/main/util-linux/hexdump.patch new file mode 100644 index 0000000000..72966e627e --- /dev/null +++ b/main/util-linux/hexdump.patch @@ -0,0 +1,39 @@ +--- ./text-utils/parse.c.orig ++++ ./text-utils/parse.c +@@ -208,7 +208,7 @@ + PR *pr, **nextpr; + FU *fu; + char *p1, *p2; +- char savech, *fmtp, cs[3]; ++ char savech, *fmtp, cs[4]; + int nconv, prec; + + nextpr = NULL; +@@ -282,9 +282,10 @@ + goto isint; + case 'o': case 'u': case 'x': case 'X': + pr->flags = F_UINT; +-isint: cs[2] = '\0'; +- cs[1] = cs[0]; +- cs[0] = 'q'; ++isint: cs[3] = '\0'; ++ cs[2] = cs[0]; ++ cs[1] = 'l'; ++ cs[0] = 'l'; + switch(fu->bcnt) { + case 0: case 4: + pr->bcnt = 4; +@@ -342,9 +343,10 @@ + ++p2; + switch(p1[2]) { + case 'd': case 'o': case'x': +- cs[0] = 'q'; +- cs[1] = p1[2]; +- cs[2] = '\0'; ++ cs[0] = 'l'; ++ cs[1] = 'l'; ++ cs[2] = p1[2]; ++ cs[3] = '\0'; + break; + default: + p1[3] = '\0'; |