# HG changeset patch # User Bram Moolenaar # Date 1373206535 -7200 # Node ID d0288faf3086e6ccd5046edc91f1baf21bf1babf # Parent 512ee5adb990f282e287c275b02a27bd7c5c8ad0 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 --- a/src/misc2.c +++ b/src/misc2.c @@ -4712,7 +4712,8 @@ vim_findfile_init(path, filename, stopdi { 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 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2, +/**/ 1, /**/ 0