From faab426d8609b3f37a2a72a8adf8e0fbbd7b7064 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Sat, 10 Feb 2007 14:18:02 +0000 Subject: [PATCH] Fix problem parsing entities; if we parsed an entity at the start of a content sequence, immediately followed by some content, the entity's content was overwritten. --- src/libCStreamedXML/buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libCStreamedXML/buffer.c b/src/libCStreamedXML/buffer.c index 64ab0be..67032e8 100644 --- a/src/libCStreamedXML/buffer.c +++ b/src/libCStreamedXML/buffer.c @@ -30,6 +30,7 @@ static int buffer_strcat(struct csxml* ctx, struct csxml_buf* dest, const char* size_t req = strlen(src) + dest->len; while(req >= dest->size) if(do_realloc(ctx, dest)) return -1; strcat(dest->data, src); + dest->len = req; return 0; }