jcf-parse.c (classify_zip_file): Correctly compare filename_length against length...
authorTom Tromey <tromey@redhat.com>
Mon, 10 Nov 2003 22:13:21 +0000 (22:13 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 10 Nov 2003 22:13:21 +0000 (22:13 +0000)
* jcf-parse.c (classify_zip_file): Correctly compare
filename_length against length of manifest file's name.

From-SVN: r73429

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index 6d5c29a..19beaaa 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-10  Tom Tromey  <tromey@redhat.com>
+
+       * jcf-parse.c (classify_zip_file): Correctly compare
+       filename_length against length of manifest file's name.
+
 2003-11-08  Tom Tromey  <tromey@redhat.com>
 
        PR java/12894:
index 016e974..352a0be 100644 (file)
@@ -1173,7 +1173,7 @@ classify_zip_file (struct ZipDirectory *zdir)
     return 1;
 
   /* For now we drop the manifest, but not other information.  */
-  if (zdir->filename_length > 8
+  if (zdir->filename_length == 20
       && !strncmp (class_name_in_zip_dir, "META-INF/MANIFEST.MF", 20))
     return 0;