Permalink
Browse files

patch 8.0.0072

Problem:    MS-Windows: Crash with long font name. (Henry Hu)
Solution:   Fix comparing with LF_FACESIZE. (Ken Takata, closes #1243)
  • Loading branch information...
1 parent c4d4ac2 commit 38bc49563782ee1cb91660e58acf1afe1a31020a @brammool brammool committed Nov 10, 2016
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/os_mswin.c
  2. +2 −0 src/version.c
View
@@ -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;
}
View
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 72,
+/**/
71,
/**/
70,

0 comments on commit 38bc495

Please sign in to comment.