forked from aniani/vim
updated for version 7.3.690
Problem: When the current directory name is exactly the maximum path length Vim may crash. Solution: Only add "/" when there is room. (Danek Duvall)
This commit is contained in:
parent
d04da7cb4a
commit
dac7569612
@ -2512,15 +2512,12 @@ mch_FullName(fname, buf, len, force)
|
|||||||
}
|
}
|
||||||
|
|
||||||
l = STRLEN(buf);
|
l = STRLEN(buf);
|
||||||
if (l >= len)
|
if (l >= len - 1)
|
||||||
retval = FAIL;
|
retval = FAIL; /* no space for trailing "/" */
|
||||||
#ifndef VMS
|
#ifndef VMS
|
||||||
else
|
else if (l > 0 && buf[l - 1] != '/' && *fname != NUL
|
||||||
{
|
|
||||||
if (l > 0 && buf[l - 1] != '/' && *fname != NUL
|
|
||||||
&& STRCMP(fname, ".") != 0)
|
&& STRCMP(fname, ".") != 0)
|
||||||
STRCAT(buf, "/");
|
STRCAT(buf, "/");
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -719,6 +719,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 */
|
||||||
|
/**/
|
||||||
|
690,
|
||||||
/**/
|
/**/
|
||||||
689,
|
689,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user