changeset 3269:23d49122f015 HEAD

t_strarray_join() wasn't actually marking the memory allocated that it was returning from data stack. So it might have returned garbage.
author Timo Sirainen <tss@iki.fi>
date Fri, 08 Apr 2005 02:06:01 +0300
parents 354bfcbc01d3
children ae58b4d08de2
files src/lib/strfuncs.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/strfuncs.c	Fri Apr 08 02:02:47 2005 +0300
+++ b/src/lib/strfuncs.c	Fri Apr 08 02:06:01 2005 +0300
@@ -584,6 +584,7 @@
 		pos += len;
 	}
 	str[pos] = '\0';
+	t_buffer_alloc(pos + 1);
 	return str;
 }