summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c2
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 );