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

Increased limit on the size of torrent files

This commit is contained in:
Eric Petit 2006-07-16 16:05:43 +00:00
parent e91bf288c5
commit 67eaa8809b

View file

@ -24,6 +24,8 @@
#include "transmission.h" #include "transmission.h"
#define TORRENT_MAX_SIZE (5*1024*1024)
/*********************************************************************** /***********************************************************************
* Local prototypes * Local prototypes
**********************************************************************/ **********************************************************************/
@ -65,7 +67,7 @@ int tr_metainfoParse( tr_info_t * inf, const char * path,
fprintf( stderr, "Not a regular file (%s)\n", path ); fprintf( stderr, "Not a regular file (%s)\n", path );
return 1; return 1;
} }
if( sb.st_size > 2097152 ) if( sb.st_size > TORRENT_MAX_SIZE )
{ {
tr_err( "Torrent file is too big (%d bytes)", sb.st_size ); tr_err( "Torrent file is too big (%d bytes)", sb.st_size );
return 1; return 1;