Ignore:
Timestamp:
Aug 11, 2008, 6:33:59 PM (13 years ago)
Author:
charles
Message:

(libT) safer environmental variable handling (muks)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r6389 r6488  
    470470        if(( s = getenv( "TRANSMISSION_HOME" )))
    471471        {
    472             tr_snprintf( path, sizeof( path ), s );
     472            tr_strlcpy( path, s, sizeof( path ) );
    473473        }
    474474        else
     
    524524        if(( s = getenv( "CLUTCH_HOME" )))
    525525        {
    526             tr_snprintf( path, sizeof( path ), s );
     526            tr_strlcpy( path, s, sizeof( path ) );
    527527        }
    528528        else if(( s = getenv( "TRANSMISSION_WEB_HOME" )))
    529529        {
    530             tr_snprintf( path, sizeof( path ), s );
     530            tr_strlcpy( path, s, sizeof( path ) );
    531531        }
    532532        else
Note: See TracChangeset for help on using the changeset viewer.