Update of /cvsroot/monetdb/MonetDB5/src/modules/atoms
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11183/src/modules/atoms

Modified Files:
        xml.mx 
Log Message:
propagated changes of Friday Feb 08 2008 - Sunday Feb 10 2008
from the MonetDB_5-4 branch to the development trunk


Index: xml.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/xml.mx,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- xml.mx      11 Jan 2008 10:41:35 -0000      1.16
+++ xml.mx      10 Feb 2008 23:48:45 -0000      1.17
@@ -213,10 +213,11 @@
 
 str
 XMLcomment(xml *x, str *s){
-       int len;
-       str buf = (str) GDKmalloc(len= strlen(*s)+strlen("<!-- -->"));
-       snprintf(buf,len,"<!-- %s -->",*s);
-       *x= buf;
+       int len = strlen(*s) + 10;
+       str buf = (str) GDKmalloc(len);
+
+       snprintf(buf, len, "<!-- %s -->", *s);
+       *x = buf;
        return MAL_SUCCEED;
 }
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to