summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-11-05 19:33:24 +0100
committerBram Moolenaar <Bram@vim.org>2014-11-05 19:33:24 +0100
commit374bf024d23d02064fa3da94d44af71a61588783 (patch)
tree9735f2923032e47360ffb47f2637b6d622ce689a /src/os_mswin.c
parentf9e6c3b8b00ea562e0b9ddf96f85c365cdf41627 (diff)
downloadvim-git-374bf024d23d02064fa3da94d44af71a61588783.tar.gz
updated for version 7.4.506v7.4.506
Problem: MS-Windows: Cannot open a file with 259 characters. Solution: Fix off-by-one error. (Ken Takata)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 0dfd7d609..b50b86c88 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -411,7 +411,7 @@ mch_FullName(
* - convert the result from UCS2 to 'encoding'.
*/
wname = enc_to_utf16(fname, NULL);
- if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH - 1) != NULL)
+ if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH) != NULL)
{
cname = utf16_to_enc((short_u *)wbuf, NULL);
if (cname != NULL)