74cf8e
From 97d65859bc29ee334012e9c73022d8a8e55ed586 Mon Sep 17 00:00:00 2001
74cf8e
From: Su Laus <sulau@freenet.de>
74cf8e
Date: Sat, 21 Jan 2023 15:58:10 +0000
74cf8e
Subject: [PATCH] tiffcrop: Correct simple copy paste error. Fix #488.
74cf8e
74cf8e
---
74cf8e
 tools/tiffcrop.c | 2 +-
74cf8e
 1 file changed, 1 insertion(+), 1 deletion(-)
74cf8e
74cf8e
diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c
74cf8e
index 14fa18da..7db69883 100644
74cf8e
--- a/tools/tiffcrop.c
74cf8e
+++ b/tools/tiffcrop.c
74cf8e
@@ -8591,7 +8591,7 @@ static int processCropSelections(struct image_data *image,
74cf8e
                     cropsize + NUM_BUFF_OVERSIZE_BYTES);
74cf8e
             else
74cf8e
             {
74cf8e
-                prev_cropsize = seg_buffs[0].size;
74cf8e
+                prev_cropsize = seg_buffs[i].size;
74cf8e
                 if (prev_cropsize < cropsize)
74cf8e
                 {
74cf8e
                     next_buff = _TIFFrealloc(
74cf8e
-- 
74cf8e
GitLab
74cf8e