Skip to content

Commit 73903e7

Browse files
committed
updated for version 7.4.522
Problem: Specifying wrong buffer size for GetLongPathName(). Solution: Use the actual size. (Ken Takata)
1 parent d8859b2 commit 73903e7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24762,7 +24762,7 @@ modify_fname(src, usedlen, fnamep, bufp, fnamelen)
2476224762
p = alloc(_MAX_PATH + 1);
2476324763
if (p != NULL)
2476424764
{
24765-
if (GetLongPathName(*fnamep, p, MAXPATHL))
24765+
if (GetLongPathName(*fnamep, p, _MAX_PATH))
2476624766
{
2476724767
vim_free(*bufp);
2476824768
*bufp = *fnamep = p;

src/version.c

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

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
522,
744746
/**/
745747
521,
746748
/**/

0 commit comments

Comments
 (0)