diff options
Diffstat (limited to 'fitz/obj_dict.c')
-rw-r--r-- | fitz/obj_dict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/obj_dict.c b/fitz/obj_dict.c index af80226c..4b9fca41 100644 --- a/fitz/obj_dict.c +++ b/fitz/obj_dict.c @@ -51,7 +51,7 @@ fz_copydict(fz_obj *obj) if (!fz_isdict(obj)) fz_throw("assert: not a dict (%s)", fz_objkindstr(obj)); - new = fz_newdict(obj->u.d.cap); + new = fz_newdict(fz_dictlen(obj)); for (i = 0; i < fz_dictlen(obj); i++) fz_dictput(new, fz_dictgetkey(obj, i), fz_dictgetval(obj, i)); |