1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-04 21:43:03 +00:00

(libT) safer environmental variable handling (muks)

This commit is contained in:
Charles Kerr 2008-08-11 18:33:59 +00:00
parent 05e80bea43
commit 647dc88f21

View file

@ -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
{