summaryrefslogtreecommitdiff
path: root/libopenjpeg/t2.c
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-03-02 15:04:45 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-03-02 15:04:45 +0000
commit44a3af51f027c3f6292efa844bf66a9cdef899f9 (patch)
tree57b058d074baad20d14ec4475005ea0b77974a48 /libopenjpeg/t2.c
parent79f090d92b294165ba33998b79be61c8ff64e52c (diff)
[trunk] merge r1322 from branch 1.5 over to trunk
Diffstat (limited to 'libopenjpeg/t2.c')
-rw-r--r--libopenjpeg/t2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c
index 3b96644f..fb10e1b2 100644
--- a/libopenjpeg/t2.c
+++ b/libopenjpeg/t2.c
@@ -639,7 +639,7 @@ static int t2_decode_packet(opj_t2_t* t2, unsigned char *src, int len, opj_tcd_t
#endif /* USE_JPWL */
- cblk->data = (unsigned char*) opj_realloc(cblk->data, (cblk->len + seg->newlen) * sizeof(unsigned char*));
+ cblk->data = (unsigned char*) opj_realloc(cblk->data, (cblk->len + seg->newlen) * sizeof(unsigned char));
memcpy(cblk->data + cblk->len, c, seg->newlen);
if (seg->numpasses == 0) {
seg->data = &cblk->data;