(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
1 changed files with 3 additions and 3 deletions

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*