From: Bram Moolenaar Date: Wed, 5 Nov 2014 18:33:24 +0000 (+0100) Subject: updated for version 7.4.506 X-Git-Tag: v7.4.506 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=374bf024d23d02064fa3da94d44af71a61588783;p=vim updated for version 7.4.506 Problem: MS-Windows: Cannot open a file with 259 characters. Solution: Fix off-by-one error. (Ken Takata) --- 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) diff --git a/src/version.c b/src/version.c index 178a7845f..deaa7b556 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 506, /**/ 505, /**/