mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
(trunk libT) #3233 "torrent.c:1695: error: too few arguments to function `ctime_r'" on OpenSolaris
This commit is contained in:
parent
55e5edc4ad
commit
f3a5eed32b
1 changed files with 1 additions and 1 deletions
|
@ -1692,7 +1692,7 @@ torrentCallScript( tr_torrent * tor, const char * script )
|
|||
setenv( "TR_TORRENT_NAME", tr_torrentName( tor ), 1 );
|
||||
setenv( "TR_TORRENT_DIR", tor->currentDir, 1 );
|
||||
setenv( "TR_TORRENT_HASH", tor->info.hashString, 1 );
|
||||
ctime_r( &now, buf );
|
||||
tr_strlcpy( buf, ctime( &now ), sizeof( buf ) );
|
||||
*strchr( buf,'\n' ) = '\0';
|
||||
setenv( "TR_TIME_LOCALTIME", buf, 1 );
|
||||
tr_torinf( tor, "Calling script \"%s\"", script );
|
||||
|
|
Loading…
Add table
Reference in a new issue