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

Modified Files:
        xml.mx 
Log Message:
Use the proper argument sequence on nil parameters.


Index: xml.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/xml.mx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- xml.mx      24 Aug 2007 06:50:06 -0000      1.5
+++ xml.mx      24 Aug 2007 14:10:41 -0000      1.6
@@ -215,8 +215,8 @@
                                strlen(*nspace) + strlen(*attr)+
                                strlen("<></> ")+strlen(*val)+1);
        if( strNil(*nspace) && strNil(*attr))
-               snprintf(buf,len,"<%s %s %s>%s</%s>",
-                       *name, *nspace, *attr, *val, *name);
+               snprintf(buf,len,"<%s>%s</%s>",
+                       *name, *val, *name);
        else
        if( strNil(*nspace))
                snprintf(buf,len,"<%s %s>%s</%s>",
@@ -226,8 +226,8 @@
                snprintf(buf,len,"<%s %s>%s</%s>",
                        *name, *attr, *val, *name);
        else
-               snprintf(buf,len,"<%s>%s</%s>",
-                       *name, *val, *name);
+               snprintf(buf,len,"<%s %s %s>%s</%s>",
+                       *name, *nspace, *attr, *val, *name);
 
        *ret= buf;
        return MAL_SUCCEED;


-------------------------------------------------------------------------
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

Reply via email to