summaryrefslogtreecommitdiff
path: root/graphics/jasper/files/patch-jpc_mqdec.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-04-18 04:58:41 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-04-18 04:58:41 +0000
commitf164712c5623f188ef4b404d649969f778cef0f8 (patch)
tree2d6939adfebe9d963830924b0fa24c527f26d30d /graphics/jasper/files/patch-jpc_mqdec.c
parentMFH r315857 (diff)
MFH r316008, r316016
Approved by: portmgr (bdrewery) Feature safe: yes
Diffstat (limited to 'graphics/jasper/files/patch-jpc_mqdec.c')
-rw-r--r--graphics/jasper/files/patch-jpc_mqdec.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/jasper/files/patch-jpc_mqdec.c b/graphics/jasper/files/patch-jpc_mqdec.c
new file mode 100644
index 000000000000..f542fd1ea1f8
--- /dev/null
+++ b/graphics/jasper/files/patch-jpc_mqdec.c
@@ -0,0 +1,11 @@
+--- src/libjasper/jpc/jpc_mqdec.c.orig 2007-01-19 22:43:07.000000000 +0100
++++ src/libjasper/jpc/jpc_mqdec.c 2013-04-17 22:32:23.000000000 +0200
+@@ -118,7 +118,7 @@
+ mqdec->in = in;
+ mqdec->maxctxs = maxctxs;
+ /* Allocate memory for the per-context state information. */
+- if (!(mqdec->ctxs = jas_malloc(mqdec->maxctxs * sizeof(jpc_mqstate_t *)))) {
++ if (!(mqdec->ctxs = jas_malloc2(mqdec->maxctxs, sizeof(jpc_mqstate_t *)))) {
+ goto error;
+ }
+ /* Set the current context to the first context. */