mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk libT) tweak the last commit -- use strncmp() instead
This commit is contained in:
parent
7c29d46daa
commit
8a49d60f6f
1 changed files with 3 additions and 3 deletions
|
@ -1004,9 +1004,9 @@ isCurlURL( const char * filename )
|
||||||
if( filename == NULL )
|
if( filename == NULL )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return !memcmp( filename, "ftp://", 6 ) ||
|
return !strncmp( filename, "ftp://", 6 ) ||
|
||||||
!memcmp( filename, "http://", 7 ) ||
|
!strncmp( filename, "http://", 7 ) ||
|
||||||
!memcmp( filename, "https://", 8 );
|
!strncmp( filename, "https://", 8 );
|
||||||
}
|
}
|
||||||
|
|
||||||
static tr_file_index_t*
|
static tr_file_index_t*
|
||||||
|
|
Loading…
Reference in a new issue