1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 13:03:50 +00:00

(trunk libT) #2179: memory allocation in benc could be more efficient

This commit is contained in:
Charles Kerr 2009-06-07 17:54:28 +00:00
parent 8ac5a6c126
commit 6a568403d2

View file

@ -156,7 +156,7 @@ tr_bencParseStr( const uint8_t * buf,
} }
/* set to 1 to help expose bugs with tr_bencListAdd and tr_bencDictAdd */ /* set to 1 to help expose bugs with tr_bencListAdd and tr_bencDictAdd */
#define LIST_SIZE 8 /* number of items to increment list/dict buffer by */ #define LIST_SIZE 4 /* number of items to increment list/dict buffer by */
static int static int
makeroom( tr_benc * val, makeroom( tr_benc * val,