Skip to content

Commit c4a13f7

Browse files
committed
updated for version 7.4.115
Problem: When using Zsh expanding ~abc doesn't work when the result contains a space. Solution: Off-by-one error in detecting the NUL. (Pavol Juhas)
1 parent cae07f9 commit c4a13f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/os_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5990,7 +5990,7 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
59905990
{
59915991
/* If there is a NUL, set did_find_nul, else set check_spaces */
59925992
buffer[len] = NUL;
5993-
if (len && (int)STRLEN(buffer) < (int)len - 1)
5993+
if (len && (int)STRLEN(buffer) < (int)len)
59945994
did_find_nul = TRUE;
59955995
else
59965996
check_spaces = TRUE;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
115,
741743
/**/
742744
114,
743745
/**/

0 commit comments

Comments
 (0)