diff --git a/src/libCStreamedXML/parser.c b/src/libCStreamedXML/parser.c index cffb56a..b0f4615 100644 --- a/src/libCStreamedXML/parser.c +++ b/src/libCStreamedXML/parser.c @@ -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;