* readelf.c: Add missing prototypes.
[deliverable/binutils-gdb.git] / binutils / ar.c
index d6401599a02b3acff5380a6b4d2a1bce846b2f9e..996476ce460ef15a3352e951fec77336ab252fe5 100644 (file)
@@ -1,5 +1,5 @@
 /* ar.c - Archive modify and extract.
-   Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
+   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
    Free Software Foundation, Inc.
 
 This file is part of GNU Binutils.
@@ -437,7 +437,7 @@ main (argc, argv)
      of object files in the archive (the 64-bit objects
      or the 32-bit objects).  GNU ar always looks at all
      kinds of objects in an archive.  */
-  while (strcmp (argv[1], "-X32_64") == 0)
+  while (argc > 1 && strcmp (argv[1], "-X32_64") == 0)
     {
       argv++;
       argc--;
This page took 0.024172 seconds and 4 git commands to generate.