1
0
forked from aniani/vim

updated for version 7.4.522

Problem:    Specifying wrong buffer size for GetLongPathName().
Solution:   Use the actual size. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2014-11-19 18:03:28 +01:00
parent 06e7ce1a01
commit 4c7b2f50fd
2 changed files with 3 additions and 1 deletions

View File

@@ -24762,7 +24762,7 @@ repeat:
p = alloc(_MAX_PATH + 1);
if (p != NULL)
{
if (GetLongPathName(*fnamep, p, MAXPATHL))
if (GetLongPathName(*fnamep, p, _MAX_PATH))
{
vim_free(*bufp);
*bufp = *fnamep = p;

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
522,
/**/
521,
/**/