From b883da435b67e4d173e9165a13cf2ead81e4a51f Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Sat, 18 Feb 2006 12:52:52 +0000 Subject: [PATCH] COMP: Fix declaration hides parameter len --- libopenjpeg/t2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c index d9336ee1..dea2bb9e 100644 --- a/libopenjpeg/t2.c +++ b/libopenjpeg/t2.c @@ -268,7 +268,7 @@ static int t2_encode_packet(opj_tcd_tile_t * tile, opj_tcp_t * tcp, opj_pi_itera if (!layer->numpasses) { continue; } - if (c + layer->len > dest + len) { + if (c + layer->len > dest + length) { return -999; }