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
+1 -1
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
}