Index: gdk/gdk_atoms.mx =================================================================== RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_atoms.mx,v retrieving revision 1.175 diff -u -r1.175 gdk_atoms.mx --- gdk/gdk_atoms.mx 28 Jan 2010 12:51:09 -0000 1.175 +++ gdk/gdk_atoms.mx 11 Feb 2010 03:43:24 -0000 @@ -1105,8 +1105,9 @@ strcpy(*dst, "nil"); return 3; } - snprintf(*dst, *len, @2, (@3) *src); - return (int) strlen(*dst); + *len = snprintf(*dst, *len, @2, (@3) *src); + GDKrealloc(*dst, (*len + 1)); + return *len; } @c #define num08(x) ((x) >= '0' && (x) <= '7')