mirror of
https://github.com/transmission/transmission
synced 2025-02-04 13:32:19 +00:00
(libT) safer environmental variable handling (muks)
This commit is contained in:
parent
05e80bea43
commit
647dc88f21
1 changed files with 3 additions and 3 deletions
|
@ -469,7 +469,7 @@ tr_getDefaultConfigDir( void )
|
|||
|
||||
if(( s = getenv( "TRANSMISSION_HOME" )))
|
||||
{
|
||||
tr_snprintf( path, sizeof( path ), s );
|
||||
tr_strlcpy( path, s, sizeof( path ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -523,11 +523,11 @@ tr_getClutchDir( const tr_session * session UNUSED )
|
|||
|
||||
if(( s = getenv( "CLUTCH_HOME" )))
|
||||
{
|
||||
tr_snprintf( path, sizeof( path ), s );
|
||||
tr_strlcpy( path, s, sizeof( path ) );
|
||||
}
|
||||
else if(( s = getenv( "TRANSMISSION_WEB_HOME" )))
|
||||
{
|
||||
tr_snprintf( path, sizeof( path ), s );
|
||||
tr_strlcpy( path, s, sizeof( path ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue