apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r191048 - /apr/apr/trunk/build/jlibtool.c
Date Fri, 17 Jun 2005 01:54:48 GMT
Author: pquerna
Date: Thu Jun 16 18:54:47 2005
New Revision: 191048

URL: http://svn.apache.org/viewcvs?rev=191048&view=rev
Log:
*  build/jlibtool.c: Start the string with null, and strcat will extend it correctly.  This
fixes jlibtool on FreeBSD 6.0-CURRENT. (and likely other platforms...)

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

Modified: apr/apr/trunk/build/jlibtool.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/build/jlibtool.c?rev=191048&r1=191047&r2=191048&view=diff
==============================================================================
--- apr/apr/trunk/build/jlibtool.c (original)
+++ apr/apr/trunk/build/jlibtool.c Thu Jun 16 18:54:47 2005
@@ -350,7 +350,7 @@
     }
 
     newval = (char*)malloc(size + 1);
-    newval[size] = 0;
+    newval[0] = 0;
 
     for (i = 0; i < cc->num; i++) {
         if (cc->vals[i]) {



Mime
View raw message