Permalink
Browse files

Don't set a maximum file size. read_file will use the file size.

There was a hard-coded 2MB file size limit on the .torrent files.
Set the limit to 0 so read_file() will use the actual file size.

Closes GH-14
  • Loading branch information...
1 parent 1b22c92 commit b1d891c7b134755e60175a6c1cdf25f0e618d159 @queueRAM queueRAM committed Jul 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 misc/metainfo.c
View
@@ -378,7 +378,7 @@ char *
mi_load(const char *path, size_t *size)
{
char *res;
- size_t mi_size = (1 << 21);
+ size_t mi_size = 0;
if ((res = read_file(path, NULL, &mi_size)) == NULL)
return NULL;

0 comments on commit b1d891c

Please sign in to comment.