]>
Commit | Line | Data |
---|---|---|
6577e359 | 1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.037 | |
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.037 | |
11 | Problem: strcpy() used for overlapping strings. (Chris Monson) | |
12 | Solution: Use mch_memmove() instead. | |
13 | Files: src/option.c | |
14 | ||
15 | ||
16 | *** ../vim-7.1.036/src/option.c Tue Jul 24 09:50:22 2007 | |
17 | --- src/option.c Sun Jul 22 16:42:47 2007 | |
18 | *************** | |
19 | *** 4628,4634 **** | |
20 | if ((!(flags & P_COMMA) || *s != ',') | |
21 | && vim_strchr(s + 1, *s) != NULL) | |
22 | { | |
23 | ! STRCPY(s, s + 1); | |
24 | --s; | |
25 | } | |
26 | } | |
27 | --- 4628,4634 ---- | |
28 | if ((!(flags & P_COMMA) || *s != ',') | |
29 | && vim_strchr(s + 1, *s) != NULL) | |
30 | { | |
31 | ! mch_memmove(s, s + 1, STRLEN(s)); | |
32 | --s; | |
33 | } | |
34 | } | |
35 | *** ../vim-7.1.036/src/version.c Tue Jul 24 14:32:44 2007 | |
36 | --- src/version.c Tue Jul 24 14:56:03 2007 | |
37 | *************** | |
38 | *** 668,669 **** | |
39 | --- 668,671 ---- | |
40 | { /* Add new patch number below this line */ | |
41 | + /**/ | |
42 | + 37, | |
43 | /**/ | |
44 | ||
45 | -- | |
46 | This planet has -- or rather had -- a problem, which was this: most | |
47 | of the people living on it were unhappy for pretty much of the time. | |
48 | Many solutions were suggested for this problem, but most of these | |
49 | were largely concerned with the movements of small green pieces of | |
50 | paper, which is odd because on the whole it wasn't the small green | |
51 | pieces of paper that were unhappy. | |
52 | -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy" | |
53 | ||
54 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
55 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
56 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
57 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |