mirror of
https://github.com/vim/vim.git
synced 2025-10-07 05:54:16 -04:00
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);
|
p = alloc(_MAX_PATH + 1);
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
{
|
{
|
||||||
if (GetLongPathName(*fnamep, p, MAXPATHL))
|
if (GetLongPathName(*fnamep, p, _MAX_PATH))
|
||||||
{
|
{
|
||||||
vim_free(*bufp);
|
vim_free(*bufp);
|
||||||
*bufp = *fnamep = p;
|
*bufp = *fnamep = p;
|
||||||
|
@@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
522,
|
||||||
/**/
|
/**/
|
||||||
521,
|
521,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user