mirror of
https://gitea.psi.ch/ELOG/mxml.git
synced 2026-09-09 01:23:22 +00:00
bug fix.
This commit is contained in:
parent
9d17b1f869
commit
3e3b113ec0
2
mxml.c
2
mxml.c
@ -1767,7 +1767,7 @@ PMXML_NODE mxml_parse_entity(char **buf, char *error, int error_size)
|
|||||||
for (i = 0; i < nentity; i++) {
|
for (i = 0; i < nentity; i++) {
|
||||||
p = buffer;
|
p = buffer;
|
||||||
while (1) {
|
while (1) {
|
||||||
pv = strstr(entity_name[i], p);
|
pv = strstr(p, entity_name[i]);
|
||||||
if (pv) {
|
if (pv) {
|
||||||
length += -strlen(entity_name[i]) + strlen(entity_value[i]);
|
length += -strlen(entity_name[i]) + strlen(entity_value[i]);
|
||||||
p = pv + 1;
|
p = pv + 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user