Ignore:
Timestamp:
Feb 25, 2008, 8:21:22 PM (14 years ago)
Author:
charles
Message:

added tr_sha1_to_hex()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r5065 r5112  
    193193    }
    194194
    195     for( i = 0; i < SHA_DIGEST_LENGTH; i++ )
    196     {
    197         snprintf( inf->hashString + i * 2, sizeof( inf->hashString ) - i * 2,
    198                   "%02x", inf->hash[i] );
    199     }
     195    tr_sha1_to_hex( inf->hashString, inf->hash );
    200196    savedname( inf->torrent, sizeof( inf->torrent ), inf->hashString, tag );
    201197
Note: See TracChangeset for help on using the changeset viewer.