diff options
| author | Giuseppe Baruffa <gbaruffa@users.noreply.github.com> | 2007-09-07 23:16:31 +0000 |
|---|---|---|
| committer | Giuseppe Baruffa <gbaruffa@users.noreply.github.com> | 2007-09-07 23:16:31 +0000 |
| commit | d70a0415b910cc5a3550fea1d777ded84d4cdfa0 (patch) | |
| tree | 9d73e44534b437db7144bff8b64653bc42a07302 /codec | |
| parent | 3816e0edf40b766ab78cdbf3ba5634b684630d0f (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.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 */ |
