Skip to content

Commit

Permalink
updated for version 7.3.068
Browse files Browse the repository at this point in the history
Problem:    Using freed memory when doing ":saveas" and an autocommand sets
	    'autochdir'. (Kevin Klement)
Solution:   Get the value of fname again after executing autocommands.
  • Loading branch information
brammool committed Nov 24, 2010
1 parent 35e3241 commit 8601f0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ex_cmds.c
Expand Up @@ -2705,6 +2705,10 @@ do_write(eap)
TRUE);
do_modelines(0);
}

/* Autocommands may have changed buffer names, esp. when
* 'autochdir' is set. */
fname = curbuf->b_sfname;
#endif
}

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -714,6 +714,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
68,
/**/
67,
/**/
Expand Down

0 comments on commit 8601f0b

Please sign in to comment.