]>
Commit | Line | Data |
---|---|---|
6577e359 | 1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.039 | |
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.039 | |
11 | Problem: A tag in a help file that starts with "help-tags" and contains a | |
12 | percent sign may make Vim crash. (Ulf Harnhammar) | |
13 | Solution: Use puts() instead of fprintf(). | |
14 | Files: src/ex_cmds.c | |
15 | ||
16 | ||
17 | *** ../vim-7.1.038/src/ex_cmds.c Tue Jul 24 11:15:46 2007 | |
18 | --- src/ex_cmds.c Wed Jul 25 20:06:20 2007 | |
19 | *************** | |
20 | *** 6374,6382 **** | |
21 | for (i = 0; i < ga.ga_len; ++i) | |
22 | { | |
23 | s = ((char_u **)ga.ga_data)[i]; | |
24 | ! if (STRNCMP(s, "help-tags", 9) == 0) | |
25 | /* help-tags entry was added in formatted form */ | |
26 | ! fprintf(fd_tags, (char *)s); | |
27 | else | |
28 | { | |
29 | fprintf(fd_tags, "%s\t/*", s); | |
30 | --- 6374,6382 ---- | |
31 | for (i = 0; i < ga.ga_len; ++i) | |
32 | { | |
33 | s = ((char_u **)ga.ga_data)[i]; | |
34 | ! if (STRNCMP(s, "help-tags\t", 10) == 0) | |
35 | /* help-tags entry was added in formatted form */ | |
36 | ! fputs((char *)s, fd_tags); | |
37 | else | |
38 | { | |
39 | fprintf(fd_tags, "%s\t/*", s); | |
40 | *** ../vim-7.1.038/src/version.c Tue Jul 24 15:25:27 2007 | |
41 | --- src/version.c Wed Jul 25 22:41:18 2007 | |
42 | *************** | |
43 | *** 668,669 **** | |
44 | --- 668,671 ---- | |
45 | { /* Add new patch number below this line */ | |
46 | + /**/ | |
47 | + 39, | |
48 | /**/ | |
49 | ||
50 | -- | |
51 | On the other hand, you have different fingers. | |
52 | -- Steven Wright | |
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 /// |