summaryrefslogtreecommitdiff
path: root/graphics/jasper/files/patch-jpc_t2cod.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/jasper/files/patch-jpc_t2cod.c')
-rw-r--r--graphics/jasper/files/patch-jpc_t2cod.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/jasper/files/patch-jpc_t2cod.c b/graphics/jasper/files/patch-jpc_t2cod.c
new file mode 100644
index 000000000000..f4024ecac631
--- /dev/null
+++ b/graphics/jasper/files/patch-jpc_t2cod.c
@@ -0,0 +1,11 @@
+--- src/libjasper/jpc/jpc_t2cod.c.orig 2007-01-19 22:43:07.000000000 +0100
++++ src/libjasper/jpc/jpc_t2cod.c 2013-04-17 22:32:23.000000000 +0200
+@@ -573,7 +573,7 @@
+ }
+ if (pchglist->numpchgs >= pchglist->maxpchgs) {
+ newmaxpchgs = pchglist->maxpchgs + 128;
+- if (!(newpchgs = jas_realloc(pchglist->pchgs, newmaxpchgs * sizeof(jpc_pchg_t *)))) {
++ if (!(newpchgs = jas_realloc2(pchglist->pchgs, newmaxpchgs, sizeof(jpc_pchg_t *)))) {
+ return -1;
+ }
+ pchglist->maxpchgs = newmaxpchgs;