From 26b2c3ae54184e0be5ce766302769d058c518761 Mon Sep 17 00:00:00 2001
From: Kamil Dudka <kdudka@redhat.com>
Date: Tue, 2 Aug 2022 11:08:50 +0200
Subject: [PATCH] Related: #2112870 - reflect review comments on the previous
 change

---
 coreutils-i18n.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coreutils-i18n.patch b/coreutils-i18n.patch
index 2ac39c6..f6881ed 100644
--- a/coreutils-i18n.patch
+++ b/coreutils-i18n.patch
@@ -4283,7 +4283,7 @@ index 7d6100f..04cd646 100644
 -                  column++;
 +                  /* mb_width() returns 0 for control characters */
 +                  const int width = mb_width (c);
-+                  column += (width) ? width : 1;
++                  column += MIN(1, width);
                    if (!column)
                      die (EXIT_FAILURE, 0, _("input line is too long"));
                  }