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:
db1ab1a
)
Fix bug http://bugs.busybox.net/view.php?id=874 where hexdump -C got its
author
Rob Landley
<rob@landley.net>
Wed, 28 Jun 2006 14:36:50 +0000
(14:36 -0000)
committer
Rob Landley
<rob@landley.net>
Wed, 28 Jun 2006 14:36:50 +0000
(14:36 -0000)
spacing wrong.
libbb/dump.c
patch
|
blob
|
history
diff --git
a/libbb/dump.c
b/libbb/dump.c
index b12a8e2239b7810fbdcbce84b4a802fe2d31dc39..45ddb403409dbce48f7ac42032da04688633ed32 100644
(file)
--- a/
libbb/dump.c
+++ b/
libbb/dump.c
@@
-424,7
+424,7
@@
static unsigned char *get(void)
static void bpad(PR * pr)
{
-
register
char *p1, *p2;
+ char *p1, *p2;
/*
* remove all conversion flags; '-' is the only one valid
@@
-433,7
+433,8
@@
static void bpad(PR * pr)
pr->flags = F_BPAD;
*pr->cchar = 's';
for (p1 = pr->fmt; *p1 != '%'; ++p1);
- for (p2 = ++p1; *p1 && strchr(" -0+#", *p1); ++p1);
+ for (p2 = ++p1; *p1 && strchr(" -0+#", *p1); ++p1)
+ if (pr->nospace) pr->nospace--;
while ((*p2++ = *p1++) != 0);
}