From: Bram Moolenaar Date: Thu, 10 Nov 2016 16:10:51 +0000 (+0100) Subject: patch 8.0.0072 X-Git-Tag: v8.0.0072 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38bc49563782ee1cb91660e58acf1afe1a31020a;p=vim 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 625fdccc4..dc5538947 100644 --- 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; } diff --git a/src/version.c b/src/version.c index d51160bf2..ef637a898 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 72, /**/ 71, /**/