소스 검색

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 15 년 전
부모
커밋
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
불러오는 중...
취소
저장