Sfoglia il codice sorgente

Update for the read_whole_file -> read_file change.

master
Richard Nyberg 18 anni fa
parent
commit
b306439636
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      misc/metainfo.c

+ 2
- 2
misc/metainfo.c Vedi File

@@ -376,10 +376,10 @@ mi_test(const char *p, size_t size)
char *
mi_load(const char *path, size_t *size)
{
void *res = NULL;
char *res;
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;
if (!mi_test(res, mi_size)) {
free(res);


||||||
x
 
000:0
Loading…
Annulla
Salva