patch 7.4.719
Problem: Overflow when adding MAXCOL to a pointer.
Solution: Subtract pointers instead. (James McCoy)
diff --git a/src/screen.c b/src/screen.c
index f9a847d..a0e9fc9 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4341,7 +4341,7 @@
|| (mb_utf8 && mb_c == 160)
#endif
) && lcs_nbsp)
- || (c == ' ' && lcs_space && ptr <= line + trailcol)))
+ || (c == ' ' && lcs_space && ptr - line <= trailcol)))
{
c = (c == ' ') ? lcs_space : lcs_nbsp;
if (area_attr == 0 && search_attr == 0)
diff --git a/src/version.c b/src/version.c
index ab9d100..61bd602 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 719,
+/**/
718,
/**/
717,