From e2222cc39c42765d77e265956813a964969b6c7e Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 26 Jan 2015 20:01:34 +0000 Subject: [PATCH] --- MagickCore/blob.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MagickCore/blob.c b/MagickCore/blob.c index 259cf8c91..ee2e93820 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -1116,7 +1116,7 @@ MagickExport void *FileToBlob(const char *filename,const size_t extent, */ static inline ssize_t WriteBlobStream(Image *image,const size_t length, - const unsigned char *data) + const void *data) { MagickSizeType extent; @@ -1125,10 +1125,10 @@ static inline ssize_t WriteBlobStream(Image *image,const size_t length, *q; assert(image->blob != (BlobInfo *) NULL); + assert(image->blob->type != UndefinedStream); + assert(data != NULL); if (image->blob->type != BlobStream) return(WriteBlob(image,length,data)); - assert(image->blob->type != UndefinedStream); - assert(data != (void *) NULL); extent=(MagickSizeType) (image->blob->offset+(MagickOffsetType) length); if (extent >= image->blob->extent) { -- 2.40.0