Fix error where first character of entity name in entity reference was
sent to the wrong buffer, and ended up in content rather than entity name.
This commit is contained in:
parent
bf2ca8d925
commit
593bb8d80c
1 changed files with 1 additions and 1 deletions
|
|
@ -550,7 +550,7 @@ int csxml_feedChar(struct csxml* ctx, char ch)
|
|||
ctx->state = StateCharEntity;
|
||||
ctx->entityChar = 0;
|
||||
} else if(c == ClassNameStartChar) {
|
||||
APPEND_CH(buffer, ch);
|
||||
APPEND_CH(buffer2, ch);
|
||||
ctx->state = StateEntityName;
|
||||
} else ERROR("Invalid entity name.");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue