Skip to content

Commit c4bbc6d

Browse files
committed
updated for version 7.4.506
Problem: MS-Windows: Cannot open a file with 259 characters. Solution: Fix off-by-one error. (Ken Takata)
1 parent fd38f30 commit c4bbc6d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/os_mswin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ mch_FullName(
411411
* - convert the result from UCS2 to 'encoding'.
412412
*/
413413
wname = enc_to_utf16(fname, NULL);
414-
if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH - 1) != NULL)
414+
if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH) != NULL)
415415
{
416416
cname = utf16_to_enc((short_u *)wbuf, NULL);
417417
if (cname != NULL)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
506,
744746
/**/
745747
505,
746748
/**/

0 commit comments

Comments
 (0)