Update of /cvsroot/monetdb/MonetDB5/src/modules/atoms
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9659/src/modules/atoms
Modified Files:
Tag: MonetDB_5-4
xml.mx
Log Message:
fixed bug in XMLcomment.
Index: xml.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/xml.mx,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -u -d -r1.16 -r1.16.2.1
--- xml.mx 11 Jan 2008 10:41:35 -0000 1.16
+++ xml.mx 10 Feb 2008 17:34:38 -0000 1.16.2.1
@@ -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