1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(trunk, libT) #3833 'freespace' argument for 'session-get' RPC method -- use TR_PATH_MAX instead of PATH_MAX for session.downloadDirFsType and session.downloadDirBlkDev

This commit is contained in:
Jordan Lee 2012-12-27 20:22:32 +00:00
parent 0c1db5f67b
commit 5f1f4934eb

View file

@ -590,8 +590,8 @@ tr_sessionInit (const char * tag,
session->cache = tr_cacheNew (1024*1024*2);
session->tag = tr_strdup (tag);
session->magicNumber = SESSION_MAGIC_NUMBER;
session->downloadDirBlkDev = tr_malloc (PATH_MAX + 1);
session->downloadDirFsType = tr_malloc (PATH_MAX + 1);
session->downloadDirBlkDev = tr_malloc (TR_PATH_MAX + 1);
session->downloadDirFsType = tr_malloc (TR_PATH_MAX + 1);
tr_bandwidthConstruct (&session->bandwidth, session, NULL);
tr_peerIdInit (session->peer_id);
tr_variantInitList (&session->removedTorrents, 0);