Explorar el Código

Update for the read_whole_file -> read_file change.

master
Richard Nyberg hace 18 años
padre
commit
b306439636
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      misc/metainfo.c

+ 2
- 2
misc/metainfo.c Ver fichero

@@ -376,10 +376,10 @@ mi_test(const char *p, size_t size)
char * char *
mi_load(const char *path, size_t *size) mi_load(const char *path, size_t *size)
{ {
void *res = NULL; char *res;
size_t mi_size = (1 << 21); size_t mi_size = (1 << 21);


if ((errno = read_whole_file(&res, &mi_size, path)) != 0) if ((res = read_file(path, NULL, &mi_size)) == NULL)
return NULL; return NULL;
if (!mi_test(res, mi_size)) { if (!mi_test(res, mi_size)) {
free(res); free(res);


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