From a1111c83d054022fe3b30a1f9d48c24749f6fd57 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 20 Dec 2005 07:09:34 +0000 Subject: [PATCH] Decode strings in quotes correctly --- mxml.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mxml.c b/mxml.c index cc90b28..ab4c450 100755 --- a/mxml.c +++ b/mxml.c @@ -270,6 +270,10 @@ void mxml_decode(char *str) 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 ; iparent); + printf("Prnt: %08X\n", (size_t)tree->parent); for (i=0 ; in_children);