libtiff: Typo fixes following https://gitlab.com/libtiff/libtiff/-/commit/c95c77350820e19c8e273925bc97259727d19695

From 51d00bc6d5babadd813604a6fa3e72f5ecd5128d Mon Sep 17 00:00:00 2001
From: Lee Howard <[EMAIL REDACTED]>
Date: Thu, 16 May 2024 16:43:45 -0700
Subject: [PATCH] Typo fixes following
 https://gitlab.com/libtiff/libtiff/-/commit/c95c77350820e19c8e273925bc97259727d19695

---
 ChangeLog              | 8 ++++----
 libtiff/tif_dirwrite.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a538cc1b..2dfc30a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2077,7 +2077,7 @@
 	to
 	{ TIFFTAG_INTEROPERABILITYIFD, 1, 1, TIFF_IFD8, 0, TIFF_SETGET_IFD8, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "InteroperabilityIFDOffset", NULL },
 
-	However, if those tags should not be handled by LibTiff because they are deamed as abandoned or unwanted tags, those tags need to be defined with FIELD_IGNORE instead of FIELD_CUSTOM and keeping set_field_type  = TIFF_SETGET_UNDEFINED
+	However, if those tags should not be handled by LibTiff because they are deemed as abandoned or unwanted tags, those tags need to be defined with FIELD_IGNORE instead of FIELD_CUSTOM and keeping set_field_type  = TIFF_SETGET_UNDEFINED
 
 2022-07-01  Su_Laus  <sulau@freenet.de>
 
@@ -3960,7 +3960,7 @@
 2021-03-07  Antonio Valentino  <Antonio.Valentino@esa.int>
 
 	Add LERC plugin.
-	The lerc plugin code has been copied:* form GDAL.
+	The lerc plugin code has been copied from GDAL.
 
 2021-03-06  Roger Leigh  <rleigh@codelibre.net>
 
@@ -4634,7 +4634,7 @@
 2020-12-31  Kurt Schwehr  <schwehr@google.com>
 
 	custom_dir_EXIF_231.c: dos2unix and codespell.
-	additional, Varable, greather, alwasy
+	additional, Variable, greater, always
 
 2020-12-31  Kurt Schwehr  <schwehr@google.com>
 
@@ -6208,7 +6208,7 @@
 
 2019-10-03  Even Rouault  <even.rouault@spatialys.com>
 
-	tif_read: align code of TIFFReadRawStrip() and TIFFReadRawTile() that deferred for non good reason. Non-functional change normally. (fixes GitLab #162)
+	tif_read: align code of TIFFReadRawStrip() and TIFFReadRawTile() that differed for non good reason. Non-functional change normally. (fixes GitLab #162)
 
 2019-10-01  Even Rouault  <even.rouault@spatialys.com>
 
diff --git a/libtiff/tif_dirwrite.c b/libtiff/tif_dirwrite.c
index d7781fc8..7ebcbb26 100644
--- a/libtiff/tif_dirwrite.c
+++ b/libtiff/tif_dirwrite.c
@@ -2017,7 +2017,7 @@ static void EvaluateIFDdatasizeWrite(TIFF *tif, uint32_t count,
     uint64_t datalength = (uint64_t)count * typesize;
     if (datalength > ((tif->tif_flags & TIFF_BIGTIFF) ? 0x8U : 0x4U))
     {
-        /* LibTIFF increments write address to an even offset, thus datalenght
+        /* LibTIFF increments write address to an even offset, thus datalength
          * written is also incremented. */
         if (datalength & 1)
             datalength++;