X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FDict.cc;h=dd1517f0ab951b34a28653e6f19e4ec203256a9e;hb=6287c3aded8d9fb8dd645a81b2950709d2cdba17;hp=627459078a0a7c8fcb5d315f0cfae38d75471e70;hpb=c7432833fe3a6469d63fad135151a92e12877b94;p=swftools.git diff --git a/pdf2swf/xpdf/Dict.cc b/pdf2swf/xpdf/Dict.cc index 6274590..dd1517f 100644 --- a/pdf2swf/xpdf/Dict.cc +++ b/pdf2swf/xpdf/Dict.cc @@ -47,7 +47,7 @@ void Dict::add(char *key, Object *val) { } else { size *= 2; } - entries = (DictEntry *)grealloc(entries, size * sizeof(DictEntry)); + entries = (DictEntry *)greallocn(entries, size, sizeof(DictEntry)); } entries[length].key = key; entries[length].val = *val;