From: Tom Tromey Date: Mon, 10 Nov 2003 22:13:21 +0000 (+0000) Subject: jcf-parse.c (classify_zip_file): Correctly compare filename_length against length... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87a9cbf9ae6557bd9946fd6384e040c589def3b2;p=gcc.git jcf-parse.c (classify_zip_file): Correctly compare filename_length against length of manifest file's name. * jcf-parse.c (classify_zip_file): Correctly compare filename_length against length of manifest file's name. From-SVN: r73429 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 6d5c29a19fe..19beaaae821 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2003-11-10 Tom Tromey + + * jcf-parse.c (classify_zip_file): Correctly compare + filename_length against length of manifest file's name. + 2003-11-08 Tom Tromey PR java/12894: diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 016e9743b34..352a0beedcf 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -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;