changeset 10355:9f88dba65a2d v8.0.0072

commit https://github.com/vim/vim/commit/38bc49563782ee1cb91660e58acf1afe1a31020a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 10 17:10:51 2016 +0100 patch 8.0.0072 Problem: MS-Windows: Crash with long font name. (Henry Hu) Solution: Fix comparing with LF_FACESIZE. (Ken Takata, closes https://github.com/vim/vim/issues/1243)
author Christian Brabandt <cb@256bit.org>
date Thu, 10 Nov 2016 17:15:04 +0100
parents 1406a8ee653a
children 49b1b87c4802
files src/os_mswin.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -2893,7 +2893,7 @@ get_logfont(
      */
     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;
     }
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    72,
+/**/
     71,
 /**/
     70,