Skip to content

Commit

Permalink
Oh no, strcmp != streq
Browse files Browse the repository at this point in the history
  • Loading branch information
CGDogan authored Jun 29, 2023
1 parent c3a9d3e commit 3e27021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iipsrv/src/IIPImage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void IIPImage::testImageType() throw(file_error)
unsigned char bbigtiff[4] = {0x49,0x49,0x2B,0x00}; // Big Endian BigTIFF

const char * vendor = openslide_detect_vendor( path.c_str() );
if ( vendor != NULL && !strcmp(vendor, "generic-tiff") )
if ( vendor != NULL && strcmp(vendor, "generic-tiff") )
format = OPENSLIDE;
// Compare our header sequence to our magic byte signatures
else if( memcmp( header, j2k, 10 ) == 0 ) format = JPEG2000;
Expand Down

0 comments on commit 3e27021

Please sign in to comment.