summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSu Laus <sulau@freenet.de>2023-01-21 15:58:10 +0000
committerEven Rouault <even.rouault@spatialys.com>2023-01-21 15:58:10 +0000
commit97d65859bc29ee334012e9c73022d8a8e55ed586 (patch)
treee319cc5103010fd65f59f97252e363e8e4e7eca2
parent6be14e882f36db6386de1517edc2b25aa0626942 (diff)
downloadlibtiff-git-97d65859bc29ee334012e9c73022d8a8e55ed586.tar.gz
tiffcrop: Correct simple copy paste error. Fix #488.
-rw-r--r--tools/tiffcrop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c
index 14fa18da..7db69883 100644
--- a/tools/tiffcrop.c
+++ b/tools/tiffcrop.c
@@ -8591,7 +8591,7 @@ static int processCropSelections(struct image_data *image,
cropsize + NUM_BUFF_OVERSIZE_BYTES);
else
{
- prev_cropsize = seg_buffs[0].size;
+ prev_cropsize = seg_buffs[i].size;
if (prev_cropsize < cropsize)
{
next_buff = _TIFFrealloc(