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.
This commit is contained in:
Laurence Withers 2007-02-10 14:18:02 +00:00
parent 83a3fb9618
commit faab426d86
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}