forked from aniani/vim
updated for version 7.3.161
Problem: Items on the stack may be too big. Solution: Make items static or allocate them.
This commit is contained in:
@@ -6023,15 +6023,19 @@ make_bom(buf, name)
|
||||
shorten_fname1(full_path)
|
||||
char_u *full_path;
|
||||
{
|
||||
char_u dirname[MAXPATHL];
|
||||
char_u *dirname;
|
||||
char_u *p = full_path;
|
||||
|
||||
dirname = alloc(MAXPATHL);
|
||||
if (dirname == NULL)
|
||||
return full_path;
|
||||
if (mch_dirname(dirname, MAXPATHL) == OK)
|
||||
{
|
||||
p = shorten_fname(full_path, dirname);
|
||||
if (p == NULL || *p == NUL)
|
||||
p = full_path;
|
||||
}
|
||||
vim_free(dirname);
|
||||
return p;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user