|
Karsten Hopp |
e3e57f |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e3e57f |
Subject: Patch 7.4.115
|
|
Karsten Hopp |
e3e57f |
Fcc: outbox
|
|
Karsten Hopp |
e3e57f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e3e57f |
Mime-Version: 1.0
|
|
Karsten Hopp |
e3e57f |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e3e57f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e3e57f |
------------
|
|
Karsten Hopp |
e3e57f |
|
|
Karsten Hopp |
e3e57f |
Patch 7.4.115
|
|
Karsten Hopp |
e3e57f |
Problem: When using Zsh expanding ~abc doesn't work when the result
|
|
Karsten Hopp |
e3e57f |
contains a space.
|
|
Karsten Hopp |
e3e57f |
Solution: Off-by-one error in detecting the NUL. (Pavol Juhas)
|
|
Karsten Hopp |
e3e57f |
Files: src/os_unix.c
|
|
Karsten Hopp |
e3e57f |
|
|
Karsten Hopp |
e3e57f |
|
|
Karsten Hopp |
e3e57f |
*** ../vim-7.4.114/src/os_unix.c 2013-11-03 00:40:54.000000000 +0100
|
|
Karsten Hopp |
e3e57f |
--- src/os_unix.c 2013-12-11 13:19:26.000000000 +0100
|
|
Karsten Hopp |
e3e57f |
***************
|
|
Karsten Hopp |
e3e57f |
*** 5990,5996 ****
|
|
Karsten Hopp |
e3e57f |
{
|
|
Karsten Hopp |
e3e57f |
/* If there is a NUL, set did_find_nul, else set check_spaces */
|
|
Karsten Hopp |
e3e57f |
buffer[len] = NUL;
|
|
Karsten Hopp |
e3e57f |
! if (len && (int)STRLEN(buffer) < (int)len - 1)
|
|
Karsten Hopp |
e3e57f |
did_find_nul = TRUE;
|
|
Karsten Hopp |
e3e57f |
else
|
|
Karsten Hopp |
e3e57f |
check_spaces = TRUE;
|
|
Karsten Hopp |
e3e57f |
--- 5990,5996 ----
|
|
Karsten Hopp |
e3e57f |
{
|
|
Karsten Hopp |
e3e57f |
/* If there is a NUL, set did_find_nul, else set check_spaces */
|
|
Karsten Hopp |
e3e57f |
buffer[len] = NUL;
|
|
Karsten Hopp |
e3e57f |
! if (len && (int)STRLEN(buffer) < (int)len)
|
|
Karsten Hopp |
e3e57f |
did_find_nul = TRUE;
|
|
Karsten Hopp |
e3e57f |
else
|
|
Karsten Hopp |
e3e57f |
check_spaces = TRUE;
|
|
Karsten Hopp |
e3e57f |
*** ../vim-7.4.114/src/version.c 2013-12-11 12:22:54.000000000 +0100
|
|
Karsten Hopp |
e3e57f |
--- src/version.c 2013-12-11 13:20:29.000000000 +0100
|
|
Karsten Hopp |
e3e57f |
***************
|
|
Karsten Hopp |
e3e57f |
*** 740,741 ****
|
|
Karsten Hopp |
e3e57f |
--- 740,743 ----
|
|
Karsten Hopp |
e3e57f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e3e57f |
+ /**/
|
|
Karsten Hopp |
e3e57f |
+ 115,
|
|
Karsten Hopp |
e3e57f |
/**/
|
|
Karsten Hopp |
e3e57f |
|
|
Karsten Hopp |
e3e57f |
--
|
|
Karsten Hopp |
e3e57f |
Change is inevitable, except from a vending machine.
|
|
Karsten Hopp |
e3e57f |
|
|
Karsten Hopp |
e3e57f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e3e57f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e3e57f |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e3e57f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|