Blame SOURCES/7.4.115

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