提交 d620b00f 编写于 作者: D Daniel Veillard

* src/Makefile.am: fix tst build rule

* src/buf.c: fix virBufferContentAndFree to make sure the string is
  always 0 terminated.
Daniel
上级 24abf6c9
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()
......
......@@ -77,7 +77,7 @@ virsh_CFLAGS = $(COVERAGE_CFLAGS)
# 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)
......
......@@ -141,9 +141,11 @@ virBufferContentAndFree (virBufferPtr buf)
return(NULL);
content = buf->content;
if (content != NULL)
content[buf->use] = 0;
free (buf);
return content;
return(content);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册