diff options
author | Even Rouault <even.rouault@spatialys.com> | 2020-05-13 00:56:14 +0200 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2020-05-13 00:56:14 +0200 |
commit | 6b3b189d5bbbd4ccb8521f19b77e491a95be7825 (patch) | |
tree | 03f34356c0d0de50fccfb0600cf4e06a4a1cfcf1 | |
parent | 2a597b76cc009858efad7ef45f8d9ca070464086 (diff) | |
download | libtiff-git-6b3b189d5bbbd4ccb8521f19b77e491a95be7825.tar.gz |
TIFFGetConfiguredCODECs(): fix to avoid wrong structure to be returned for registered (ie non built-in) codecs
-rw-r--r-- | libtiff/tif_compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtiff/tif_compress.c b/libtiff/tif_compress.c index 8130ef08..915478f5 100644 --- a/libtiff/tif_compress.c +++ b/libtiff/tif_compress.c @@ -264,7 +264,7 @@ TIFFGetConfiguredCODECs() return NULL; } codecs = new_codecs; - _TIFFmemcpy(codecs + i - 1, cd, sizeof(TIFFCodec)); + _TIFFmemcpy(codecs + i - 1, cd->info, sizeof(TIFFCodec)); i++; } for (c = _TIFFBuiltinCODECS; c->name; c++) { |