diff options
author | Tom Tromey <tromey@redhat.com> | 2003-11-10 22:13:21 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-11-10 22:13:21 +0000 |
commit | 87a9cbf9ae6557bd9946fd6384e040c589def3b2 (patch) | |
tree | b3f3e9e5f63874ed5fa9bc32c5719039de25fc04 /gcc/java | |
parent | 394b9d9962d3d0f75e0d17cb11c79603678b4b58 (diff) | |
download | gcc-87a9cbf9ae6557bd9946fd6384e040c589def3b2.zip gcc-87a9cbf9ae6557bd9946fd6384e040c589def3b2.tar.gz gcc-87a9cbf9ae6557bd9946fd6384e040c589def3b2.tar.bz2 |
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
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-parse.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 6d5c29a..19beaaa 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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: diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 016e974..352a0be 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; |