diff options
author | erdgeist <> | 2007-02-01 15:45:24 +0000 |
---|---|---|
committer | erdgeist <> | 2007-02-01 15:45:24 +0000 |
commit | e7f6908fb235aaad27455b4316c5c105ac3af344 (patch) | |
tree | dc8b49e055f719af27ba9c3a622c621046416ce6 | |
parent | bbdc36c5185e78e48c8d2c72925ea15df6b9916f (diff) |
Reserved too few space to hold all data for a memdebug
-rw-r--r-- | trackerlogic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 54f236f..25cba05 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -339,7 +339,7 @@ size_t return_memstat_for_tracker( char **reply ) { | |||
339 | torrent_count += torrents_list->size; | 339 | torrent_count += torrents_list->size; |
340 | } | 340 | } |
341 | 341 | ||
342 | if( !( r = *reply = malloc( 256*32 + 64*torrent_count ) ) ) return 0; | 342 | if( !( r = *reply = malloc( 256*32 + (43+3+30)*torrent_count ) ) ) return 0; |
343 | 343 | ||
344 | for( i=0; i<256; ++i ) | 344 | for( i=0; i<256; ++i ) |
345 | r += sprintf( r, "%02X: %08X %08X\n", i, (ot_dword)all_torrents[i].size, (ot_dword)all_torrents[i].space ); | 345 | r += sprintf( r, "%02X: %08X %08X\n", i, (ot_dword)all_torrents[i].size, (ot_dword)all_torrents[i].space ); |