From b1d891c7b134755e60175a6c1cdf25f0e618d159 Mon Sep 17 00:00:00 2001 From: Marq Schneider Date: Tue, 20 Jul 2010 17:43:02 -0500 Subject: 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 --- misc/metainfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/metainfo.c') diff --git a/misc/metainfo.c b/misc/metainfo.c index bed1bd9..452aedf 100644 --- a/misc/metainfo.c +++ b/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; -- cgit 1.4.1