Related: #2112870 - reflect review comments on the previous change
This commit is contained in:
parent
e0f6afe5e6
commit
26b2c3ae54
@ -4283,7 +4283,7 @@ index 7d6100f..04cd646 100644
|
|||||||
- column++;
|
- column++;
|
||||||
+ /* mb_width() returns 0 for control characters */
|
+ /* mb_width() returns 0 for control characters */
|
||||||
+ const int width = mb_width (c);
|
+ const int width = mb_width (c);
|
||||||
+ column += (width) ? width : 1;
|
+ column += MIN(1, width);
|
||||||
if (!column)
|
if (!column)
|
||||||
die (EXIT_FAILURE, 0, _("input line is too long"));
|
die (EXIT_FAILURE, 0, _("input line is too long"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user