From 0a827a985f891d6df481a6f581c723640fad7874 Mon Sep 17 00:00:00 2001
From: 4ugustus <wangdw.augustus@qq.com>
Date: Tue, 25 Jan 2022 04:30:38 +0000
Subject: [PATCH] fix a small typo in strlen

Conflict:NA
Reference:https://gitlab.com/libtiff/libtiff/-/commit/0a827a985f891d6df481a6f581c723640fad7874

---
 tools/tiffset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tiffset.c b/tools/tiffset.c
index b8b52c0..e7a88c0 100644
--- a/tools/tiffset.c
+++ b/tools/tiffset.c
@@ -148,7 +148,7 @@ main(int argc, char* argv[])
             if (TIFFFieldDataType(fip) == TIFF_ASCII) {
                 if(TIFFFieldPassCount( fip )) {
                     size_t len;
-                    len = strlen(argv[arg_index] + 1);
+                    len = strlen(argv[arg_index]) + 1;
                     if (len > UINT16_MAX || TIFFSetField(tiff, TIFFFieldTag(fip),
                             (uint16_t)len, argv[arg_index]) != 1)
                         fprintf( stderr, "Failed to set %s=%s\n",
-- 
2.33.0

