harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r543080 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
Date Thu, 31 May 2007 08:19:56 GMT
Author: apetrenko
Date: Thu May 31 01:19:54 2007
New Revision: 543080

URL: http://svn.apache.org/viewvc?view=rev&rev=543080
Log:
Additional patch for HARMONY-3054

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c?view=diff&rev=543080&r1=543079&r2=543080
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
Thu May 31 01:19:54 2007
@@ -91,7 +91,9 @@
 Java_java_util_jar_JarFile_getMetaEntriesImpl (JNIEnv * env, jobject recv,
 					       jbyteArray zipName)
 {
-#define MAX_PATH	1024
+
+#define MAX_PATH_J	1024
+
 #define RESULT_BUF_SIZE 256
 
   PORT_ACCESS_FROM_ENV (env);
@@ -111,8 +113,8 @@
   const UDATA metaInfSize = 10;	/* 10 == strlen("META-INF/") + 1 */
   jobjectArray result = NULL;
   char *nameBuf, *newNameBuf, *oldNameBuf = NULL;
-  char startNameBuf[MAX_PATH];
-  UDATA nameBufSize = MAX_PATH;
+  char startNameBuf[MAX_PATH_J];
+  UDATA nameBufSize = MAX_PATH_J;
   IDATA rc;
 #ifdef HY_ZIP_API
   HyZipFunctionTable *zipFuncs = (*VMI)->GetZipFunctions(VMI);
@@ -225,6 +227,6 @@
     }
   return NULL;
 
-#undef MAX_PATH
+#undef MAX_PATH_J
 #undef RESULT_BUF_SIZE
 }



Mime
View raw message