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:
@@ -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;
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
522,
|
||||
/**/
|
||||
521,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user