]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 10 Mar 2018 21:59:31 +0000 (16:59 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 10 Mar 2018 21:59:31 +0000 (16:59 -0500)
MagickCore/xml-tree.c

index d62ce1f9a31505b3a33dfcb30d17ff2351eefb42..f16b14c3311cf0160da36de15773c90f0bb5fc59 100644 (file)
@@ -696,7 +696,7 @@ MagickPrivate char *FileToXML(const char *filename,const size_t extent)
       (void) lseek(file,0,SEEK_SET);
       for (i=0; i < length; i+=count)
       {
-        count=read(file,xml+i,(size_t) MagickMin(length-i,SSIZE_MAX));
+        count=read(file,xml+i,(size_t) MagickMin(length-i,(ssize_t) SSIZE_MAX));
         if (count <= 0)
           {
             count=0;