aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/strings.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d53797d..7a59410 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+1999-12-26 Ian Lance Taylor <ian@zembu.com>
+
+ * strings.c (main): Correct handling of numeric argument.
+
1999-12-23 Andrew Haley <aph@cygnus.com>
* dlltool.c (mtable): mcore how_jtab_roff is 4 bytes into the
diff --git a/binutils/strings.c b/binutils/strings.c
index 8ffe6a1..fb139fa 100644
--- a/binutils/strings.c
+++ b/binutils/strings.c
@@ -203,7 +203,7 @@ main (argc, argv)
default:
if (string_min < 0)
- string_min = optc;
+ string_min = optc - '0';
else
string_min = string_min * 10 + optc - '0';
break;