diff options
Diffstat (limited to 'graphics/jasper/files/patch-jpc_mqdec.c')
-rw-r--r-- | graphics/jasper/files/patch-jpc_mqdec.c | 11 |
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. */ |