|
Karsten Hopp |
f16247 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
f16247 |
Subject: patch 7.1.037
|
|
Karsten Hopp |
f16247 |
Fcc: outbox
|
|
Karsten Hopp |
f16247 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f16247 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f16247 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
f16247 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f16247 |
------------
|
|
Karsten Hopp |
f16247 |
|
|
Karsten Hopp |
f16247 |
Patch 7.1.037
|
|
Karsten Hopp |
f16247 |
Problem: strcpy() used for overlapping strings. (Chris Monson)
|
|
Karsten Hopp |
f16247 |
Solution: Use mch_memmove() instead.
|
|
Karsten Hopp |
f16247 |
Files: src/option.c
|
|
Karsten Hopp |
f16247 |
|
|
Karsten Hopp |
f16247 |
|
|
Karsten Hopp |
f16247 |
*** ../vim-7.1.036/src/option.c Tue Jul 24 09:50:22 2007
|
|
Karsten Hopp |
f16247 |
--- src/option.c Sun Jul 22 16:42:47 2007
|
|
Karsten Hopp |
f16247 |
***************
|
|
Karsten Hopp |
f16247 |
*** 4628,4634 ****
|
|
Karsten Hopp |
f16247 |
if ((!(flags & P_COMMA) || *s != ',')
|
|
Karsten Hopp |
f16247 |
&& vim_strchr(s + 1, *s) != NULL)
|
|
Karsten Hopp |
f16247 |
{
|
|
Karsten Hopp |
f16247 |
! STRCPY(s, s + 1);
|
|
Karsten Hopp |
f16247 |
--s;
|
|
Karsten Hopp |
f16247 |
}
|
|
Karsten Hopp |
f16247 |
}
|
|
Karsten Hopp |
f16247 |
--- 4628,4634 ----
|
|
Karsten Hopp |
f16247 |
if ((!(flags & P_COMMA) || *s != ',')
|
|
Karsten Hopp |
f16247 |
&& vim_strchr(s + 1, *s) != NULL)
|
|
Karsten Hopp |
f16247 |
{
|
|
Karsten Hopp |
f16247 |
! mch_memmove(s, s + 1, STRLEN(s));
|
|
Karsten Hopp |
f16247 |
--s;
|
|
Karsten Hopp |
f16247 |
}
|
|
Karsten Hopp |
f16247 |
}
|
|
Karsten Hopp |
f16247 |
*** ../vim-7.1.036/src/version.c Tue Jul 24 14:32:44 2007
|
|
Karsten Hopp |
f16247 |
--- src/version.c Tue Jul 24 14:56:03 2007
|
|
Karsten Hopp |
f16247 |
***************
|
|
Karsten Hopp |
f16247 |
*** 668,669 ****
|
|
Karsten Hopp |
f16247 |
--- 668,671 ----
|
|
Karsten Hopp |
f16247 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f16247 |
+ /**/
|
|
Karsten Hopp |
f16247 |
+ 37,
|
|
Karsten Hopp |
f16247 |
/**/
|
|
Karsten Hopp |
f16247 |
|
|
Karsten Hopp |
f16247 |
--
|
|
Karsten Hopp |
f16247 |
This planet has -- or rather had -- a problem, which was this: most
|
|
Karsten Hopp |
f16247 |
of the people living on it were unhappy for pretty much of the time.
|
|
Karsten Hopp |
f16247 |
Many solutions were suggested for this problem, but most of these
|
|
Karsten Hopp |
f16247 |
were largely concerned with the movements of small green pieces of
|
|
Karsten Hopp |
f16247 |
paper, which is odd because on the whole it wasn't the small green
|
|
Karsten Hopp |
f16247 |
pieces of paper that were unhappy.
|
|
Karsten Hopp |
f16247 |
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
|
|
Karsten Hopp |
f16247 |
|
|
Karsten Hopp |
f16247 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f16247 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f16247 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
f16247 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|