mirror of
https://gitea.psi.ch/ELOG/mxml.git
synced 2026-09-09 01:23:22 +00:00
Decode strings in quotes correctly
This commit is contained in:
parent
2bd4d06829
commit
a1111c83d0
8
mxml.c
8
mxml.c
@ -270,6 +270,10 @@ void mxml_decode(char *str)
|
|||||||
strcpy(p, p+5);
|
strcpy(p, p+5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (str[0] == '\"' && str[strlen(str)-1] == '\"') {
|
||||||
|
strcpy(str, str+1);
|
||||||
|
str[strlen(str)-1] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
@ -1991,10 +1995,10 @@ void mxml_debug_tree(PMXML_NODE tree, int level)
|
|||||||
|
|
||||||
for (i=0 ; i<level ; i++)
|
for (i=0 ; i<level ; i++)
|
||||||
printf(" ");
|
printf(" ");
|
||||||
printf("Addr: %08X\n", (unsigned int)tree);
|
printf("Addr: %08X\n", (size_t)tree);
|
||||||
for (i=0 ; i<level ; i++)
|
for (i=0 ; i<level ; i++)
|
||||||
printf(" ");
|
printf(" ");
|
||||||
printf("Prnt: %08X\n", (unsigned int)tree->parent);
|
printf("Prnt: %08X\n", (size_t)tree->parent);
|
||||||
for (i=0 ; i<level ; i++)
|
for (i=0 ; i<level ; i++)
|
||||||
printf(" ");
|
printf(" ");
|
||||||
printf("NCld: %d\n", tree->n_children);
|
printf("NCld: %d\n", tree->n_children);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user