Explorar el Código

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 hace 14 años
padre
commit
b1d891c7b1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      misc/metainfo.c

+ 1
- 1
misc/metainfo.c Ver fichero

@@ -378,7 +378,7 @@ char *
mi_load(const char *path, size_t *size) mi_load(const char *path, size_t *size)
{ {
char *res; char *res;
size_t mi_size = (1 << 21); size_t mi_size = 0;


if ((res = read_file(path, NULL, &mi_size)) == NULL) if ((res = read_file(path, NULL, &mi_size)) == NULL)
return NULL; return NULL;


||||||
x
 
000:0
Cargando…
Cancelar
Guardar