|
Karsten Hopp |
2acd13 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
2acd13 |
Subject: patch 7.1.039
|
|
Karsten Hopp |
2acd13 |
Fcc: outbox
|
|
Karsten Hopp |
2acd13 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2acd13 |
Mime-Version: 1.0
|
|
Karsten Hopp |
2acd13 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
2acd13 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2acd13 |
------------
|
|
Karsten Hopp |
2acd13 |
|
|
Karsten Hopp |
2acd13 |
Patch 7.1.039
|
|
Karsten Hopp |
2acd13 |
Problem: A tag in a help file that starts with "help-tags" and contains a
|
|
Karsten Hopp |
2acd13 |
percent sign may make Vim crash. (Ulf Harnhammar)
|
|
Karsten Hopp |
2acd13 |
Solution: Use puts() instead of fprintf().
|
|
Karsten Hopp |
2acd13 |
Files: src/ex_cmds.c
|
|
Karsten Hopp |
2acd13 |
|
|
Karsten Hopp |
2acd13 |
|
|
Karsten Hopp |
2acd13 |
*** ../vim-7.1.038/src/ex_cmds.c Tue Jul 24 11:15:46 2007
|
|
Karsten Hopp |
2acd13 |
--- src/ex_cmds.c Wed Jul 25 20:06:20 2007
|
|
Karsten Hopp |
2acd13 |
***************
|
|
Karsten Hopp |
2acd13 |
*** 6374,6382 ****
|
|
Karsten Hopp |
2acd13 |
for (i = 0; i < ga.ga_len; ++i)
|
|
Karsten Hopp |
2acd13 |
{
|
|
Karsten Hopp |
2acd13 |
s = ((char_u **)ga.ga_data)[i];
|
|
Karsten Hopp |
2acd13 |
! if (STRNCMP(s, "help-tags", 9) == 0)
|
|
Karsten Hopp |
2acd13 |
/* help-tags entry was added in formatted form */
|
|
Karsten Hopp |
2acd13 |
! fprintf(fd_tags, (char *)s);
|
|
Karsten Hopp |
2acd13 |
else
|
|
Karsten Hopp |
2acd13 |
{
|
|
Karsten Hopp |
2acd13 |
fprintf(fd_tags, "%s\t/*", s);
|
|
Karsten Hopp |
2acd13 |
--- 6374,6382 ----
|
|
Karsten Hopp |
2acd13 |
for (i = 0; i < ga.ga_len; ++i)
|
|
Karsten Hopp |
2acd13 |
{
|
|
Karsten Hopp |
2acd13 |
s = ((char_u **)ga.ga_data)[i];
|
|
Karsten Hopp |
2acd13 |
! if (STRNCMP(s, "help-tags\t", 10) == 0)
|
|
Karsten Hopp |
2acd13 |
/* help-tags entry was added in formatted form */
|
|
Karsten Hopp |
2acd13 |
! fputs((char *)s, fd_tags);
|
|
Karsten Hopp |
2acd13 |
else
|
|
Karsten Hopp |
2acd13 |
{
|
|
Karsten Hopp |
2acd13 |
fprintf(fd_tags, "%s\t/*", s);
|
|
Karsten Hopp |
2acd13 |
*** ../vim-7.1.038/src/version.c Tue Jul 24 15:25:27 2007
|
|
Karsten Hopp |
2acd13 |
--- src/version.c Wed Jul 25 22:41:18 2007
|
|
Karsten Hopp |
2acd13 |
***************
|
|
Karsten Hopp |
2acd13 |
*** 668,669 ****
|
|
Karsten Hopp |
2acd13 |
--- 668,671 ----
|
|
Karsten Hopp |
2acd13 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2acd13 |
+ /**/
|
|
Karsten Hopp |
2acd13 |
+ 39,
|
|
Karsten Hopp |
2acd13 |
/**/
|
|
Karsten Hopp |
2acd13 |
|
|
Karsten Hopp |
2acd13 |
--
|
|
Karsten Hopp |
2acd13 |
On the other hand, you have different fingers.
|
|
Karsten Hopp |
2acd13 |
-- Steven Wright
|
|
Karsten Hopp |
2acd13 |
|
|
Karsten Hopp |
2acd13 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2acd13 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2acd13 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
2acd13 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|