Update of /cvsroot/monetdb/pathfinder/compiler/mem
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20437/compiler/mem
Modified Files:
array.c
Log Message:
propagated changes of Thursday Feb 21 2008 - Friday Feb 22 2008
from the XQuery_0-22 branch to the development trunk
Index: array.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mem/array.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- array.c 11 Jan 2008 10:47:09 -0000 1.24
+++ array.c 22 Feb 2008 12:46:27 -0000 1.25
@@ -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