]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 25 Oct 2017 20:16:34 +0000 (16:16 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 25 Oct 2017 20:16:34 +0000 (16:16 -0400)
coders/webp.c

index 040c16c7bfd4882f207ac2e2a362fd820f0bfe7b..05dfb28b1d625656bf496b0060535ca015bf81cc 100644 (file)
@@ -510,7 +510,7 @@ static int WebPEncodeWriter(const unsigned char *stream,size_t length,
     *image;
 
   image=(Image *) picture->custom_ptr;
-  return(length != 0 ? (int) WriteBlob(image,length,stream) : 1);
+  return(length != 0 ? (WriteBlob(image,length,stream) == length) : 1);
 }
 
 static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info,