Update of /cvsroot/monetdb/pathfinder/compiler/mem
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18847/compiler/mem

Modified Files:
      Tag: xquery-decomposition
        array.c 
Log Message:
propagated changes of Thursday Feb 21 2008 - Friday Feb 22 2008
from the development trunk to the xquery-decomposition branch


Index: array.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mem/array.c,v
retrieving revision 1.24
retrieving revision 1.24.2.1
diff -u -d -r1.24 -r1.24.2.1
--- array.c     11 Jan 2008 10:47:09 -0000      1.24
+++ array.c     22 Feb 2008 13:26:05 -0000      1.24.2.1
@@ -223,7 +223,7 @@
      * ever larger buffers until we do know the size.
      */
     va_copy(tmp, mat);
-    while ((nchars = vsnprintf (try, len, fmt, tmp)) < 0) {
+    while ((nchars = vsnprintf (try, len-1, fmt, tmp)) < 0) {
         len *= 2;
         try = realloc(try, len);
         va_copy(tmp, mat);


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