diff --git a/stb_image.h b/stb_image.h index 0a9de39..a91952b 100644 --- a/stb_image.h +++ b/stb_image.h @@ -6017,7 +6017,7 @@ static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp) char *token; int valid = 0; - if (strcmp(stbi__hdr_gettoken(s,buffer), "#?RADIANCE") != 0) { + if (stbi__hdr_test(s) == 0) { stbi__rewind( s ); return 0; }