4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
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().
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
21 for (i = 0; i < ga.ga_len; ++i)
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);
29 fprintf(fd_tags, "%s\t/*", s);
31 for (i = 0; i < ga.ga_len; ++i)
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);
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
45 { /* Add new patch number below this line */
51 On the other hand, you have different fingers.
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 ///