瀏覽代碼

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 年之前
父節點
當前提交
b1d891c7b1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      misc/metainfo.c

+ 1
- 1
misc/metainfo.c 查看文件

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


||||||
x
 
000:0
Loading…
取消
儲存