From f3a5eed32bed59e5c6ce2f3bb872926148f607dd Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 25 May 2010 15:23:16 +0000 Subject: [PATCH] (trunk libT) #3233 "torrent.c:1695: error: too few arguments to function `ctime_r'" on OpenSolaris --- libtransmission/torrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 89b8355e2..95425d490 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 ); -- 2.40.0