On Sat, Jan 31, 2009 at 08:14:15AM +0100, Daniel Veillard wrote:
> On Thu, Jan 29, 2009 at 06:25:58PM -0500, Gilles Roy wrote:
> > Or does the application have to add the string terminator itself?
> 
>   The terminator may not be present in a buffer and it's definitely
> not accounted for in the size, like in any classic C API, I can't see
> why you're expecting this.

Thanks. The reason I was unsure is because the sample code from the
website treats the buffer as terminated:

testWriter.c
609:    fprintf(fp, "%s", (const char *) buf->content);

So this code could end up writting garbage. I've created a bug report:
Bug 570214 – Sample code from website has a bug


Thanks,
Gilles
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to