From: Cristy Date: Sun, 4 Feb 2018 12:58:35 +0000 (-0500) Subject: Revert X-Git-Tag: 7.0.7-23~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9d0f472a931f9f69d97d360885f8ae8e8179aed;p=imagemagick Revert --- diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c index a25a67c49..7718c2910 100644 --- a/MagickCore/xml-tree.c +++ b/MagickCore/xml-tree.c @@ -1789,8 +1789,8 @@ static MagickBooleanType ParseInternalDoctype(XMLTreeRoot *root,char *xml, (n != (char *) NULL) && (strcmp(n,root->attributes[i][0]) != 0)) i++; - xml++; - while ((*(n=xml+strspn(xml,XMLWhitespace)) != '\0') && (*n != '>')) + while ((*(n=xml+strspn(xml+1,XMLWhitespace)+1) != '\0') && + (*n != '>')) { xml=n+strcspn(n,XMLWhitespace); if (*xml != '\0')