From e8694f7f66b995aaecf018afa82e69d861a8b304 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 16 Jun 2008 22:15:53 +0000 Subject: [PATCH] fix tr_strcasecmp in the case where HAVE_STRCASECMP is not defined --- libtransmission/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/utils.c b/libtransmission/utils.c index b2c24d53f..95a655ee7 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -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 }