Update of /cvsroot/monetdb/pathfinder/src/sqlhelpers/xmlshred
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5895

Modified Files:
      Tag: XQuery_0-22
        encoding.c 
Log Message:
-- Fix for Sjoerds vsnprintf changes (22 Feb):
   1.20 -> 1.20.6.1
   1.20.6.1 -> 1.20.6.2

   Sjoerd,

   I think you forgot to change 'back' this occurrence of vsnprintf.
   Could you please double-check if my change is in line with yours.

   Thanks,
   Jan


Index: encoding.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/src/sqlhelpers/xmlshred/encoding.c,v
retrieving revision 1.20.6.2
retrieving revision 1.20.6.3
diff -u -d -r1.20.6.2 -r1.20.6.3
--- encoding.c  22 Feb 2008 15:13:22 -0000      1.20.6.2
+++ encoding.c  25 Mar 2008 08:59:58 -0000      1.20.6.3
@@ -690,7 +690,7 @@
 
     if (bufpos < 0 || (unsigned int) bufpos < text_size) {
         snprintf ((char *) buf + bufpos,
-                  MIN (n, BUF_SIZE - bufpos),
+                  MIN (n, BUF_SIZE - bufpos) + 1,
                   "%s",
                   (char *) chars);
         bufpos += MIN (n, BUF_SIZE - bufpos);


-------------------------------------------------------------------------
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-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to