Changeset 9972


Ignore:
Timestamp:
Jan 20, 2010, 6:41:22 PM (12 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpcimpl.c

    r9971 r9972  
    10051005        return FALSE;
    10061006
    1007     return !memcmp( filename, "ftp://", 6 ) ||
    1008            !memcmp( filename, "http://", 7 ) ||
    1009            !memcmp( filename, "https://", 8 );
     1007    return !strncmp( filename, "ftp://", 6 ) ||
     1008           !strncmp( filename, "http://", 7 ) ||
     1009           !strncmp( filename, "https://", 8 );
    10101010}
    10111011
Note: See TracChangeset for help on using the changeset viewer.