From: Bram Moolenaar Date: Sun, 7 Jul 2013 14:15:35 +0000 (+0200) Subject: updated for version 7.4a.002 X-Git-Tag: v7.4a.002 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8785f2c39de588883e505cc58c3dac1902c945c;p=vim updated for version 7.4a.002 Problem: Valgrind errors in test 89. (Simon Ruderich) Solution: Allocate one more byte. (Dominique Pelle) --- diff --git a/src/misc2.c b/src/misc2.c index 86a1f9def..504cf0aed 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -4712,7 +4712,8 @@ vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what, { wc_path = vim_strsave(search_ctx->ffsc_wc_path); temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path) - + (STRLEN(search_ctx->ffsc_fix_path)) - len)); + + STRLEN(search_ctx->ffsc_fix_path + len) + + 1)); } if (temp == NULL || wc_path == NULL) diff --git a/src/version.c b/src/version.c index d5622106f..ade1bf528 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2, /**/ 1, /**/