forked from enlightenment/efl
parent
26d7e31787
commit
898379b49b
|
@ -847,11 +847,11 @@ eet_write(Eet_File *ef, char *name, void *data, int size, int compress)
|
||||||
ef->header->directory->nodes = calloc(1, sizeof(Eet_File_Node *) * (1 << ef->header->directory->size));
|
ef->header->directory->nodes = calloc(1, sizeof(Eet_File_Node *) * (1 << ef->header->directory->size));
|
||||||
if (!ef->header->directory->nodes) return 0;
|
if (!ef->header->directory->nodes) return 0;
|
||||||
}
|
}
|
||||||
/* figure hash bucket */
|
|
||||||
hash = eet_hash_gen(name, ef->header->directory->size);
|
|
||||||
/* dup name */
|
/* dup name */
|
||||||
name2 = strdup(name);
|
name2 = strdup(name);
|
||||||
if (!name2) return 0;
|
if (!name2) return 0;
|
||||||
|
/* figure hash bucket */
|
||||||
|
hash = eet_hash_gen(name, ef->header->directory->size);
|
||||||
/* dup data */
|
/* dup data */
|
||||||
data_size = size;
|
data_size = size;
|
||||||
/* have bigger buffer for compress */
|
/* have bigger buffer for compress */
|
||||||
|
|
Loading…
Reference in New Issue