Browse Source

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
master
Marq Schneider 14 years ago
parent
commit
b1d891c7b1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      misc/metainfo.c

+ 1
- 1
misc/metainfo.c View File

@@ -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;


Loading…
Cancel
Save