From eaf70f720b57b285aa41659e00a22e6a7b586fdf Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 14 Jan 2010 14:22:44 +0000 Subject: [PATCH] --- magick/xml-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magick/xml-tree.c b/magick/xml-tree.c index 90c7d1025..5851322cb 100644 --- a/magick/xml-tree.c +++ b/magick/xml-tree.c @@ -1614,7 +1614,8 @@ static MagickBooleanType ParseInternalDoctype(XMLTreeRoot *root,char *xml, while ((root->attributes[i] != (char **) NULL) && (strcmp(n,root->attributes[i][0]) != 0)) i++; - while ((*(n=xml+strspn(xml+1,XMLWhitespace)+1) != 0) && (*n != '>')) + while ((*(n=xml+strspn(xml+1,XMLWhitespace)+1) != '\0') && + (*n != '>')) { xml=n+strcspn(n,XMLWhitespace); if (*xml != '\0') -- 2.40.0