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:
9d96e27
)
od: another fix for --strings
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 21 May 2011 16:47:51 +0000
(18:47 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 21 May 2011 16:47:51 +0000
(18:47 +0200)
function old new delta
od_main 2139 2147 +8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/od_bloaty.c
patch
|
blob
|
history
diff --git
a/coreutils/od_bloaty.c
b/coreutils/od_bloaty.c
index 8ed8f0be47309d136ec7d31294192930263b441f..bd6c75385dd2b846017b1963e8bfeec8497152ad 100644
(file)
--- a/
coreutils/od_bloaty.c
+++ b/
coreutils/od_bloaty.c
@@
-1183,12
+1183,15
@@
int od_main(int argc UNUSED_PARAM, char **argv)
"read-bytes\0" Required_argument "N"
"format\0" Required_argument "t"
"output-duplicates\0" No_argument "v"
+ /* Yes, it's true: -S NUM, but --strings[=NUM]!
+ * that is, NUM is mandatory for -S but optional for --strings!
+ */
"strings\0" Optional_argument "S"
"width\0" Optional_argument "w"
"traditional\0" No_argument "\xff"
;
#endif
- c
har *str_A, *str_N, *str_j, *str_S
;
+ c
onst char *str_A, *str_N, *str_j, *str_S = "3"
;
llist_t *lst_t = NULL;
unsigned opt;
int l_c_m;