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->state = StateCharEntity;
|
||||||
ctx->entityChar = 0;
|
ctx->entityChar = 0;
|
||||||
} else if(c == ClassNameStartChar) {
|
} else if(c == ClassNameStartChar) {
|
||||||
APPEND_CH(buffer, ch);
|
APPEND_CH(buffer2, ch);
|
||||||
ctx->state = StateEntityName;
|
ctx->state = StateEntityName;
|
||||||
} else ERROR("Invalid entity name.");
|
} else ERROR("Invalid entity name.");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue