From: cristy Date: Sat, 20 Dec 2014 23:28:16 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1586 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fee36719749ef039853d0874276e0b0de7f5aaac;p=imagemagick --- diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c index 9da9c725f..e98901934 100644 --- a/MagickCore/xml-tree.c +++ b/MagickCore/xml-tree.c @@ -1526,7 +1526,10 @@ static char *ParseEntities(char *xml,char **entities,int state) */ for (xml=p; *xml != '\0'; xml++) { - i=(ssize_t) strspn(xml," "); + char + accept[] = " "; + + i=(ssize_t) strspn(xml,accept); if (i != 0) (void) CopyMagickMemory(xml,xml+i,strlen(xml+i)+1); while ((*xml != '\0') && (*xml != ' '))