From: cristy Date: Tue, 19 Jan 2010 20:48:06 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~10098 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e3c3e30ef60779e86a08395ec1b10112a28f27d;p=imagemagick --- diff --git a/coders/dcm.c b/coders/dcm.c index 95a608fdb..450cdbe7a 100644 --- a/coders/dcm.c +++ b/coders/dcm.c @@ -3559,10 +3559,10 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) stream_info->offset_count,sizeof(*stream_info->offsets)); if (stream_info->offsets == (ssize_t *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); - for (i=0; i < (long) stream_info->offsets; i++) + for (i=0; i < (long) stream_info->offset_count; i++) stream_info->offsets[i]=(ssize_t) ReadBlobLSBLong(image); offset=TellBlob(image); - for (i=0; i < (long) stream_info->offsets; i++) + for (i=0; i < (long) stream_info->offset_count; i++) stream_info->offsets[i]+=offset; } }