Skip to content

Commit 38bc495

Browse files
committed
patch 8.0.0072
Problem: MS-Windows: Crash with long font name. (Henry Hu) Solution: Fix comparing with LF_FACESIZE. (Ken Takata, closes #1243)
1 parent c4d4ac2 commit 38bc495

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/os_mswin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@ get_logfont(
28932893
*/
28942894
for (p = name; *p && *p != ':'; p++)
28952895
{
2896-
if (p - name + 1 > LF_FACESIZE)
2896+
if (p - name + 1 >= LF_FACESIZE)
28972897
goto theend; /* Name too long */
28982898
lf->lfFaceName[p - name] = *p;
28992899
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
72,
767769
/**/
768770
71,
769771
/**/

0 commit comments

Comments
 (0)