]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 19 Jan 2010 20:48:06 +0000 (20:48 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 19 Jan 2010 20:48:06 +0000 (20:48 +0000)
coders/dcm.c

index 95a608fdb2ecb55cd470c1264d0a684ccea59caf..450cdbe7aee8e19cff2c5537eb4117538bb57066 100644 (file)
@@ -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;
         }
     }