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 15:03:28 +01:00
committed by Douglas Drumond
parent 87d02d0d32
commit eb5c37d8d7
2 changed files with 3 additions and 1 deletions
+1 -1
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;
+2
View File
@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
522,
/**/
521,
/**/