Mercurial > vim
changeset 5151:d0288faf3086 v7.4a.002
updated for version 7.4a.002
Problem: Valgrind errors in test 89. (Simon Ruderich)
Solution: Allocate one more byte. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 07 Jul 2013 16:15:35 +0200 |
parents | 512ee5adb990 |
children | aa77364a8653 |
files | src/misc2.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)