summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-09-07 23:16:31 +0000
committerGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-09-07 23:16:31 +0000
commitd70a0415b910cc5a3550fea1d777ded84d4cdfa0 (patch)
tree9d73e44534b437db7144bff8b64653bc42a07302 /codec
parent3816e0edf40b766ab78cdbf3ba5634b684630d0f (diff)
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
Diffstat (limited to 'codec')
-rw-r--r--codec/image_to_j2k.c2
1 files changed, 1 insertions, 1 deletions
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 */