]> granicus.if.org Git - vim/commitdiff
patch 8.0.0072 v8.0.0072
authorBram Moolenaar <Bram@vim.org>
Thu, 10 Nov 2016 16:10:51 +0000 (17:10 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 10 Nov 2016 16:10:51 +0000 (17:10 +0100)
Problem:    MS-Windows: Crash with long font name. (Henry Hu)
Solution:   Fix comparing with LF_FACESIZE. (Ken Takata, closes #1243)

src/os_mswin.c
src/version.c

index 625fdccc4a0cb908bc0e9f98d7df8e7983531bbb..dc55389475f4da51d4a8853360c31b2cc041ec8a 100644 (file)
@@ -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;
     }
index d51160bf2db882b9980448a2f487291c24caf5bf..ef637a8988ba185ac1abce72a664a98123235cd5 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    72,
 /**/
     71,
 /**/