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

(trunk libT) tweak the last commit -- use strncmp() instead

This commit is contained in:
Charles Kerr 2010-01-20 18:41:22 +00:00
parent 7c29d46daa
commit 8a49d60f6f

View file

@ -1004,9 +1004,9 @@ isCurlURL( const char * filename )
if( filename == NULL )
return FALSE;
return !memcmp( filename, "ftp://", 6 ) ||
!memcmp( filename, "http://", 7 ) ||
!memcmp( filename, "https://", 8 );
return !strncmp( filename, "ftp://", 6 ) ||
!strncmp( filename, "http://", 7 ) ||
!strncmp( filename, "https://", 8 );
}
static tr_file_index_t*