Changeset 10687


Ignore:
Timestamp:
May 25, 2010, 3:23:16 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #3233 "torrent.c:1695: error: too few arguments to function `ctime_r'" on OpenSolaris?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10664 r10687  
    16931693        setenv( "TR_TORRENT_DIR", tor->currentDir, 1 );
    16941694        setenv( "TR_TORRENT_HASH", tor->info.hashString, 1 );
    1695         ctime_r( &now, buf );
     1695        tr_strlcpy( buf, ctime( &now ), sizeof( buf ) );
    16961696        *strchr( buf,'\n' ) = '\0';
    16971697        setenv( "TR_TIME_LOCALTIME", buf, 1 );
Note: See TracChangeset for help on using the changeset viewer.