diff options
author | Tor Andersson <tor@ghostscript.com> | 2011-01-06 19:19:27 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2011-01-06 19:19:27 +0000 |
commit | 50e607e38a1bdbeecf991b4868d1daea9cca2e17 (patch) | |
tree | e6c073a2572e0d03ee4756ceb79ffe2f8a371963 | |
parent | 26659e68b3bab54cca3f516f97d59abf6bcc16a8 (diff) | |
download | mupdf-50e607e38a1bdbeecf991b4868d1daea9cca2e17.tar.xz |
Don't use private struct field when copying dictionaries.
-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)); |