Changeset 5739


Ignore:
Timestamp:
May 2, 2008, 1:21:26 AM (14 years ago)
Author:
charles
Message:

#909: not utf8izing the torrent name properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r5676 r5739  
    511511    tr_benc * item, * path;
    512512    int ii;
     513    char buf[4096];
    513514
    514515    if( !tr_bencIsString( name ) )
     
    521522    }
    522523
     524    memset( buf, 0, sizeof( buf ) );
     525    strlcat_utf8( buf, name->val.s.s, sizeof( buf ), 0 );
    523526    tr_free( inf->name );
    524     inf->name = tr_strdup( name->val.s.s );
     527    inf->name = tr_strdup( buf );
    525528    if( !inf->name || !*inf->name )
    526529    {
Note: See TracChangeset for help on using the changeset viewer.