Related: #2112870 - reflect review comments on the previous change

This commit is contained in:
Kamil Dudka 2022-08-02 11:08:50 +02:00
parent e0f6afe5e6
commit 26b2c3ae54
1 changed files with 1 additions and 1 deletions

View File

@ -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"));
}