diff options
author | Bram Moolenaar <bram@vim.org> | 2014-11-19 18:03:28 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2014-11-19 18:03:28 +0100 |
commit | 79e7631f24b1f8207112067e1265a32a25fc2290 (patch) | |
tree | cb331754a69b67d61f4d220f97e78e9b2aa0d18a | |
parent | c38b73df7334430abf9fbbe2cf14dc4ae003a464 (diff) | |
download | vim-79e7631f24b1f8207112067e1265a32a25fc2290.tar.gz |
Problem: Specifying wrong buffer size for GetLongPathName().
Solution: Use the actual size. (Ken Takata)
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -24762,7 +24762,7 @@ repeat: 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; diff --git a/src/version.c b/src/version.c index 758c6863..7a86692d 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 522, +/**/ 521, /**/ 520, |