diff --git a/mxml.c b/mxml.c index e132232..826c5ff 100755 --- a/mxml.c +++ b/mxml.c @@ -288,22 +288,18 @@ void mxml_decode(char *str) } else if (strncmp(p, ">", 4) == 0) { *(p++) = '>'; - strcpy(p, p+3); memmove(p, p+3, strlen(p+3) + 1); } else if (strncmp(p, "&", 5) == 0) { *(p++) = '&'; - strcpy(p, p+4); memmove(p, p+4, strlen(p+4) + 1); } else if (strncmp(p, """, 6) == 0) { *(p++) = '\"'; - strcpy(p, p+5); memmove(p, p+5, strlen(p+5) + 1); } else if (strncmp(p, "'", 6) == 0) { *(p++) = '\''; - strcpy(p, p+5); memmove(p, p+5, strlen(p+5) + 1); } else { @@ -311,7 +307,6 @@ void mxml_decode(char *str) } } /* if (str[0] == '\"' && str[strlen(str)-1] == '\"') { - strcpy(str, str+1); memmove(str, str+1, strlen(str+1) + 1); str[strlen(str)-1] = 0; }*/