Update of /cvsroot/monetdb/MonetDB5/src/modules/atoms
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1469
Modified Files:
xml.mx
Log Message:
Initialize the buffer before you write into it.
Index: xml.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/xml.mx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- xml.mx 24 Aug 2007 14:10:41 -0000 1.6
+++ xml.mx 24 Aug 2007 19:00:47 -0000 1.7
@@ -263,6 +263,7 @@
for( i=p->retc; i<p->argc; i++)
len += strlen(*(str*)getArgReference(stk,p,i));
buf= (str) GDKmalloc(len+1);
+ buf[0]=0;
for( i=p->retc; i<p->argc; i++)
strcat(buf,*(str*)getArgReference(stk,p,i));
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins