diff options
| author | Marq Schneider <queueRAM@gmail.com> | 2010-07-20 17:43:02 -0500 |
|---|---|---|
| committer | Marq Schneider <queueRAM@gmail.com> | 2010-07-20 17:43:02 -0500 |
| commit | b1d891c7b134755e60175a6c1cdf25f0e618d159 (patch) | |
| tree | 4b7bd47e20675071a3278490d94f67a8f51c61ec /misc | |
| parent | 1b22c92d46f3f98af781853c3e16190c686bbd9b (diff) | |
| download | btpd-b1d891c7b134755e60175a6c1cdf25f0e618d159.tar.gz btpd-b1d891c7b134755e60175a6c1cdf25f0e618d159.zip | |
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
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/metainfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |