1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

fix tr_strcasecmp in the case where HAVE_STRCASECMP is not defined

This commit is contained in:
Charles Kerr 2008-06-16 22:15:53 +00:00
parent 518f277e9f
commit e8694f7f66

View file

@ -398,7 +398,7 @@ tr_strcasecmp( const char * a, const char * b )
#else
while( *a && ( tolower( *(uint8_t*)a ) == tolower( *(uint8_t*)b ) ) )
++a, ++b;
return tolower( *(uint8_t*)s1) - tolower(*(uint8_t*)s2 );
return tolower( *(uint8_t*)a) - tolower(*(uint8_t*)b );
#endif
}