]>
Commit | Line | Data |
---|---|---|
5634d1d6 ER |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.068 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.3.068 | |
11 | Problem: Using freed memory when doing ":saveas" and an autocommand sets | |
12 | 'autochdir'. (Kevin Klement) | |
13 | Solution: Get the value of fname again after executing autocommands. | |
14 | Files: src/ex_cmds.c | |
15 | ||
16 | ||
17 | *** ../vim-7.3.067/src/ex_cmds.c 2010-10-15 20:20:00.000000000 +0200 | |
18 | --- src/ex_cmds.c 2010-11-24 17:53:07.000000000 +0100 | |
19 | *************** | |
20 | *** 2705,2710 **** | |
21 | --- 2705,2714 ---- | |
22 | TRUE); | |
23 | do_modelines(0); | |
24 | } | |
25 | + | |
26 | + /* Autocommands may have changed buffer names, esp. when | |
27 | + * 'autochdir' is set. */ | |
28 | + fname = curbuf->b_sfname; | |
29 | #endif | |
30 | } | |
31 | ||
32 | *** ../vim-7.3.067/src/version.c 2010-11-24 17:03:34.000000000 +0100 | |
33 | --- src/version.c 2010-11-24 17:55:11.000000000 +0100 | |
34 | *************** | |
35 | *** 716,717 **** | |
36 | --- 716,719 ---- | |
37 | { /* Add new patch number below this line */ | |
38 | + /**/ | |
39 | + 68, | |
40 | /**/ | |
41 | ||
42 | -- | |
43 | I used to wonder about the meaning of life. But I looked it | |
44 | up in the dictionary under "L" and there it was - the meaning | |
45 | of life. It was less than I expected. - Dogbert | |
46 | ||
47 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
48 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
49 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
50 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |