]>
Commit | Line | Data |
---|---|---|
e98ed9b1 ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.159 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.159 | |
11 | Problem: strcpy() has overlapping arguments. | |
12 | Solution: Use mch_memmove() instead. (Dominique Pelle) | |
13 | Files: src/ex_cmds.c | |
14 | ||
15 | ||
16 | *** ../vim-7.1.158/src/ex_cmds.c Thu Nov 8 20:47:34 2007 | |
17 | --- src/ex_cmds.c Sun Nov 18 14:11:58 2007 | |
18 | *************** | |
19 | *** 4885,4891 **** | |
20 | ++line2; | |
21 | /* move the cursor to the new line, like Vi */ | |
22 | ++curwin->w_cursor.lnum; | |
23 | ! STRCPY(new_start, p1 + 1); /* copy the rest */ | |
24 | p1 = new_start - 1; | |
25 | } | |
26 | } | |
27 | --- 4885,4892 ---- | |
28 | ++line2; | |
29 | /* move the cursor to the new line, like Vi */ | |
30 | ++curwin->w_cursor.lnum; | |
31 | ! /* copy the rest */ | |
32 | ! mch_memmove(new_start, p1 + 1, STRLEN(p1 + 1) + 1); | |
33 | p1 = new_start - 1; | |
34 | } | |
35 | } | |
36 | *** ../vim-7.1.158/src/version.c Tue Nov 20 17:21:28 2007 | |
37 | --- src/version.c Tue Nov 20 18:01:45 2007 | |
38 | *************** | |
39 | *** 668,669 **** | |
40 | --- 668,671 ---- | |
41 | { /* Add new patch number below this line */ | |
42 | + /**/ | |
43 | + 159, | |
44 | /**/ | |
45 | ||
46 | -- | |
47 | hundred-and-one symptoms of being an internet addict: | |
48 | 125. You begin to wonder how often it REALLY is necessary to get up | |
49 | and shower or bathe. | |
50 | ||
51 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
52 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
53 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
54 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |