This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: classify_zip_file fixlet


I'm checking this in on the trunk.

This fixes an oversight in classify_zip_file; now we check for the
correct filename_length.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* jcf-parse.c (classify_zip_file): Correctly compare
	filename_length against length of manifest file's name.

Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.152
diff -u -r1.152 jcf-parse.c
--- jcf-parse.c 8 Nov 2003 20:44:04 -0000 1.152
+++ jcf-parse.c 10 Nov 2003 22:10:28 -0000
@@ -1173,7 +1173,7 @@
     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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]