patch 8.0.0072
Problem: MS-Windows: Crash with long font name. (Henry Hu)
Solution: Fix comparing with LF_FACESIZE. (Ken Takata, closes #1243)
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 625fdcc..dc55389 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -2893,7 +2893,7 @@
*/
for (p = name; *p && *p != ':'; p++)
{
- if (p - name + 1 > LF_FACESIZE)
+ if (p - name + 1 >= LF_FACESIZE)
goto theend; /* Name too long */
lf->lfFaceName[p - name] = *p;
}
diff --git a/src/version.c b/src/version.c
index d51160b..ef637a8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 72,
+/**/
71,
/**/
70,