SpartanJ / SOIL2

SOIL2 is a tiny C library used primarily for uploading textures into OpenGL.
MIT No Attribution
370 stars 75 forks source link

invalid strcmp #59

Closed mgerhardy closed 1 year ago

mgerhardy commented 1 year ago
stbi_pkm_c.h: In function ‘int stbi__pkm_info(stbi__context*, int*, int*, int*)’:
stbi_pkm_c.h:85:25: warning: ‘int strcmp(const char*, const char*)’ of a string of length 6 and an array of size 6 evaluates to nonzero [-Wstring-compare]
   85 |         if ( 0 != strcmp( header.aName, "PKM 10" ) ) {
      |                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~

should most likely be strncmp