From: Cristy Date: Sun, 28 Oct 2018 22:54:49 +0000 (-0400) Subject: https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=34946 X-Git-Tag: 7.0.8-15~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6ddf3f5397d874e6c21aa24e91a48a2c7fb3013;p=imagemagick https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=34946 --- diff --git a/coders/dcm.c b/coders/dcm.c index ed3dfda9b..97b4e0a64 100644 --- a/coders/dcm.c +++ b/coders/dcm.c @@ -3199,10 +3199,12 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) Assume explicit type. */ quantum=2; - if ((strncmp(explicit_vr,"OB",2) == 0) || - (strncmp(explicit_vr,"UN",2) == 0) || - (strncmp(explicit_vr,"OW",2) == 0) || - (strncmp(explicit_vr,"SQ",2) == 0)) + if ((strcmp(explicit_vr,"OB") == 0) || + (strcmp(explicit_vr,"OW") == 0) || + (strcmp(explicit_vr,"OF") == 0) || + (strcmp(explicit_vr,"SQ") == 0) || + (strcmp(explicit_vr,"UN") == 0) || + (strcmp(explicit_vr,"UT") == 0)) { (void) ReadBlobLSBShort(image); quantum=4;