diff options
Diffstat (limited to 'codec/image_to_j2k.c')
| -rw-r--r-- | codec/image_to_j2k.c | 2 |
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 */ |
