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:
parent
83a3fb9618
commit
faab426d86
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue