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
|
@ -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…
Reference in New Issue