* strings.c (main): Correct handling of numeric argument.
authorIan Lance Taylor <ian@airs.com>
Sun, 26 Dec 1999 18:49:30 +0000 (18:49 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 26 Dec 1999 18:49:30 +0000 (18:49 +0000)
binutils/ChangeLog
binutils/strings.c

index d53797d6eaedfad092c21a25ded6c29b793a7932..7a5941030194be303f195068bead79025ccfb8d0 100644 (file)
@@ -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
index 8ffe6a166257dfb1e2cb2c0116fa1aa9ae634d55..fb139fab9bec853157090632aa766d9125507dad 100644 (file)
@@ -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;