From d70a0415b910cc5a3550fea1d777ded84d4cdfa0 Mon Sep 17 00:00:00 2001 From: Giuseppe Baruffa Date: Fri, 7 Sep 2007 23:16:31 +0000 Subject: Adapted the JPWL and OPJViewer code to new interface; fixed a samll bug in JPWL which created large EPBs even when null protection was specified --- codec/image_to_j2k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codec') diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c index eb559f3c..576c0ee9 100644 --- a/codec/image_to_j2k.c +++ b/codec/image_to_j2k.c @@ -1289,7 +1289,7 @@ int parse_cmdline_encoder(int argc, char **argv, opj_cparameters_t *parameters, /* we need to enable indexing */ if (!indexfilename) { - strncpy(parameters->index, JPWL_PRIVATEINDEX_NAME, sizeof(parameters->index)-1); + strncpy(indexfilename, JPWL_PRIVATEINDEX_NAME, OPJ_PATH_LEN); } /* search for different protection methods */ -- cgit v1.2.3