diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-07-07 16:15:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-07-07 16:15:35 +0200 |
commit | e8785f2c39de588883e505cc58c3dac1902c945c (patch) | |
tree | 38b367379a193f736d18857a85485f97b930c349 /src/misc2.c | |
parent | 3c04cc09cdbe1ceb6582d6179475017241edcb0c (diff) | |
download | vim-git-e8785f2c39de588883e505cc58c3dac1902c945c.tar.gz |
updated for version 7.4a.002v7.4a.002
Problem: Valgrind errors in test 89. (Simon Ruderich)
Solution: Allocate one more byte. (Dominique Pelle)
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |