]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 24 Jan 2014 00:40:57 +0000 (00:40 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 24 Jan 2014 00:40:57 +0000 (00:40 +0000)
MagickCore/blob.c

index 3b11d1b87d2d6090f6460f10bab8a4a039912803..d120a1c6292ae11eddd5bf0219f76f009c07a05d 100644 (file)
@@ -964,7 +964,8 @@ MagickExport unsigned char *FileToBlob(const char *filename,const size_t extent,
     }
   offset=(MagickOffsetType) lseek(file,0,SEEK_END);
   count=0;
-  if ((offset < 0) || (offset != (MagickOffsetType) ((ssize_t) offset)))
+  if ((file == fileno(stdin)) || (offset < 0) ||
+      (offset != (MagickOffsetType) ((ssize_t) offset)))
     {
       size_t
         quantum;