commit | 4c7b2f50fd6590c9b98d896978515edf0bf142bb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Nov 19 18:03:28 2014 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Nov 19 18:03:28 2014 +0100 |
tree | 3920902d0ebe14a0cf0390b88f39aa7ad2b5da4f | |
parent | 06e7ce1a013535b11d5454630cc1770ef21ea461 [diff] [blame] |
updated for version 7.4.522 Problem: Specifying wrong buffer size for GetLongPathName(). Solution: Use the actual size. (Ken Takata)
diff --git a/src/eval.c b/src/eval.c index 1b1072c..c7cc008 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -24762,7 +24762,7 @@ p = alloc(_MAX_PATH + 1); if (p != NULL) { - if (GetLongPathName(*fnamep, p, MAXPATHL)) + if (GetLongPathName(*fnamep, p, _MAX_PATH)) { vim_free(*bufp); *bufp = *fnamep = p;