mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-25 11:24:54 +02:00
This commit is contained in:
@@ -1919,8 +1919,8 @@ MagickExport XMLTreeInfo *NewXMLTree(const char *xml,ExceptionInfo *exception)
|
||||
"ParseError","UTF16 to UTF8 failed");
|
||||
return((XMLTreeInfo *) NULL);
|
||||
}
|
||||
terminal=utf8[length-1];
|
||||
utf8[length-1]='\0';
|
||||
terminal=utf8[MagickMax(length-1,0)];
|
||||
utf8[MagickMax(length-1,0)]='\0';
|
||||
p=utf8;
|
||||
while ((*p != '\0') && (*p != '<'))
|
||||
p++;
|
||||
|
||||
Reference in New Issue
Block a user