* src/buf.c: fix virBufferContentAndFree to make sure the string is
always 0 terminated.
Daniel
+Fri Oct 19 17:08:08 CEST 2007 Daniel Veillard <veillard@redhat.com>
+
+ * src/Makefile.am: fix tst build rule
+ * src/buf.c: fix virBufferContentAndFree to make sure the string is
+ always 0 terminated.
+
Fri Oct 19 11:59:39 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/conf.c: fix bug on negative values in virConfParseLong()
# target to ease building test programs
#
tst: tst.c
- $(CC) $(CFLAGS) -I../include -o tst tst.c .libs/libvirt.a -lxml2 -lxenstore -lpthread
+ $(CC) $(CFLAGS) $(INCLUDES) -I../include -o tst tst.c .libs/libvirt.a -lxml2 -lxenstore -lpthread
COVERAGE_FILES = $(CLIENT_SOURCES:%.c=libvirt_la-%.cov)
return(NULL);
content = buf->content;
+ if (content != NULL)
+ content[buf->use] = 0;
free (buf);
- return content;
+ return(content);
}
/**