|
Karsten Hopp |
325352 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
325352 |
Subject: Patch 7.4.390
|
|
Karsten Hopp |
325352 |
Fcc: outbox
|
|
Karsten Hopp |
325352 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
325352 |
Mime-Version: 1.0
|
|
Karsten Hopp |
325352 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
325352 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
325352 |
------------
|
|
Karsten Hopp |
325352 |
|
|
Karsten Hopp |
325352 |
Patch 7.4.390
|
|
Karsten Hopp |
325352 |
Problem: Advancing pointer over end of a string.
|
|
Karsten Hopp |
325352 |
Solution: Init quote character to -1 instead of zero. (Dominique Pelle)
|
|
Karsten Hopp |
325352 |
Files: src/misc1.c
|
|
Karsten Hopp |
325352 |
|
|
Karsten Hopp |
325352 |
|
|
Karsten Hopp |
325352 |
*** ../vim-7.4.389/src/misc1.c 2014-07-03 22:57:51.299862927 +0200
|
|
Karsten Hopp |
325352 |
--- src/misc1.c 2014-08-06 12:43:33.191291602 +0200
|
|
Karsten Hopp |
325352 |
***************
|
|
Karsten Hopp |
325352 |
*** 5503,5509 ****
|
|
Karsten Hopp |
325352 |
char_u *text;
|
|
Karsten Hopp |
325352 |
{
|
|
Karsten Hopp |
325352 |
char_u *s = skipwhite(text);
|
|
Karsten Hopp |
325352 |
! int quote = 0;
|
|
Karsten Hopp |
325352 |
|
|
Karsten Hopp |
325352 |
if (*s == '\'' || *s == '"')
|
|
Karsten Hopp |
325352 |
{
|
|
Karsten Hopp |
325352 |
--- 5503,5509 ----
|
|
Karsten Hopp |
325352 |
char_u *text;
|
|
Karsten Hopp |
325352 |
{
|
|
Karsten Hopp |
325352 |
char_u *s = skipwhite(text);
|
|
Karsten Hopp |
325352 |
! int quote = -1;
|
|
Karsten Hopp |
325352 |
|
|
Karsten Hopp |
325352 |
if (*s == '\'' || *s == '"')
|
|
Karsten Hopp |
325352 |
{
|
|
Karsten Hopp |
325352 |
*** ../vim-7.4.389/src/version.c 2014-07-30 17:21:53.819518506 +0200
|
|
Karsten Hopp |
325352 |
--- src/version.c 2014-08-06 12:44:31.643291182 +0200
|
|
Karsten Hopp |
325352 |
***************
|
|
Karsten Hopp |
325352 |
*** 736,737 ****
|
|
Karsten Hopp |
325352 |
--- 736,739 ----
|
|
Karsten Hopp |
325352 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
325352 |
+ /**/
|
|
Karsten Hopp |
325352 |
+ 390,
|
|
Karsten Hopp |
325352 |
/**/
|
|
Karsten Hopp |
325352 |
|
|
Karsten Hopp |
325352 |
--
|
|
Karsten Hopp |
325352 |
A radioactive cat has eighteen half-lives.
|
|
Karsten Hopp |
325352 |
|
|
Karsten Hopp |
325352 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
325352 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
325352 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
325352 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|