diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-06 03:05:54 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-06 03:05:54 +0000 |
commit | 6bef3d1d2216234454875052220ca0f477a820b4 (patch) | |
tree | 717060345370b781d3d1cde7ab4dd29304a066e8 /libbb/dump.c | |
parent | 1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (diff) | |
download | busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.tar.gz busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.tar.bz2 busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.zip |
fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h
*: style fixes
Diffstat (limited to 'libbb/dump.c')
-rw-r--r-- | libbb/dump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbb/dump.c b/libbb/dump.c index 829050d69..71e35c60f 100644 --- a/libbb/dump.c +++ b/libbb/dump.c | |||
@@ -59,7 +59,8 @@ int bb_dump_size(FS * fs) | |||
59 | prec = atoi(fmt); | 59 | prec = atoi(fmt); |
60 | while (isdigit(*++fmt)); | 60 | while (isdigit(*++fmt)); |
61 | } | 61 | } |
62 | if (!(p = strchr(size_conv_str + 12, *fmt))) { | 62 | p = strchr(size_conv_str + 12, *fmt); |
63 | if (!p) { | ||
63 | if (*fmt == 's') { | 64 | if (*fmt == 's') { |
64 | bcnt += prec; | 65 | bcnt += prec; |
65 | } else if (*fmt == '_') { | 66 | } else if (*fmt == '_') { |
@@ -162,7 +163,8 @@ static void rewrite(FS * fs) | |||
162 | DO_INT_CONV: | 163 | DO_INT_CONV: |
163 | { | 164 | { |
164 | const char *e; | 165 | const char *e; |
165 | if (!(e = strchr(lcc, *p1))) { | 166 | e = strchr(lcc, *p1); |
167 | if (!e) { | ||
166 | goto DO_BAD_CONV_CHAR; | 168 | goto DO_BAD_CONV_CHAR; |
167 | } | 169 | } |
168 | pr->flags = F_INT; | 170 | pr->flags = F_INT; |