mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.0072
Problem: MS-Windows: Crash with long font name. (Henry Hu) Solution: Fix comparing with LF_FACESIZE. (Ken Takata, closes #1243)
This commit is contained in:
@@ -2893,7 +2893,7 @@ get_logfont(
|
|||||||
*/
|
*/
|
||||||
for (p = name; *p && *p != ':'; p++)
|
for (p = name; *p && *p != ':'; p++)
|
||||||
{
|
{
|
||||||
if (p - name + 1 > LF_FACESIZE)
|
if (p - name + 1 >= LF_FACESIZE)
|
||||||
goto theend; /* Name too long */
|
goto theend; /* Name too long */
|
||||||
lf->lfFaceName[p - name] = *p;
|
lf->lfFaceName[p - name] = *p;
|
||||||
}
|
}
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
72,
|
||||||
/**/
|
/**/
|
||||||
71,
|
71,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user