*** empty log message *** --HG-- branch : HEAD
diff --git a/lib/zip_add.c b/lib/zip_add.c index 74e7882..1e3fc65 100644 --- a/lib/zip_add.c +++ b/lib/zip_add.c
@@ -6,9 +6,7 @@ int zip_add(struct zip *zf, char *name, zip_read_func *fn, void *state, int comp) { - int idx; - - /* XXX: create new entry */ + _zip_new_entry(zf); - return zip_replace(zf, idx, name, fn, state, comp); + return zip_replace(zf, zf->nentry-1, name, fn, state, comp); }