You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by je...@apache.org on 2008/02/01 05:45:14 UTC

svn commit: r617348 - /apr/apr/trunk/build/jlibtool.c

Author: jerenkrantz
Date: Thu Jan 31 20:45:13 2008
New Revision: 617348

URL: http://svn.apache.org/viewvc?rev=617348&view=rev
Log:
Permit linkage with up to 1024 files.

* build/jlibtool.c
  (init_count_chars): Make PATH_MAX the upper bound number of entries not
  PATH_MAX/4 implicitly.

Modified:
    apr/apr/trunk/build/jlibtool.c

Modified: apr/apr/trunk/build/jlibtool.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/jlibtool.c?rev=617348&r1=617347&r2=617348&view=diff
==============================================================================
--- apr/apr/trunk/build/jlibtool.c (original)
+++ apr/apr/trunk/build/jlibtool.c Thu Jan 31 20:45:13 2008
@@ -322,7 +322,7 @@
 
 void init_count_chars(count_chars *cc)
 {
-    cc->vals = (const char**)malloc(PATH_MAX);
+    cc->vals = (const char**)malloc(PATH_MAX*sizeof(char*));
     cc->num = 0;
 }