diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2008-02-08 20:58:18 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2008-02-08 20:58:18 +0000 |
commit | d51c30157c2ec626c7eb7a21f3b8199698e38e16 (patch) | |
tree | a2318d8606947c0873d7d1b70092132fa7a557b9 /binutils | |
parent | b0d8593d63e73ec1e1afa041abea93b26bba3597 (diff) | |
download | gdb-d51c30157c2ec626c7eb7a21f3b8199698e38e16.zip gdb-d51c30157c2ec626c7eb7a21f3b8199698e38e16.tar.gz gdb-d51c30157c2ec626c7eb7a21f3b8199698e38e16.tar.bz2 |
2008-02-08 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/5713
* strings.c (main): Set string_min to 4 if it is <= 0.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/strings.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 07e6e41..3cc8f7f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2008-02-08 H.J. Lu <hongjiu.lu@intel.com> + + PR binutils/5713 + * strings.c (main): Set string_min to 4 if it is <= 0. + 2008-02-07 Alan Modra <amodra@bigpond.net.au> * objdump.c (main): Don't pass unadorned NULL to concat. diff --git a/binutils/strings.c b/binutils/strings.c index 650b8cb..cf4b336 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -270,7 +270,7 @@ main (int argc, char **argv) } } - if (string_min < 0) + if (string_min <= 0) string_min = 4; switch (encoding) |