# HG changeset patch # User Bram Moolenaar # Date 1416416608 -3600 # Node ID 870480df8275c1647530a23cbf778d888e1dc824 # Parent 489ca94f6b99f5d74a44d146812bbf56da6cdc7b 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 --- a/src/eval.c +++ b/src/eval.c @@ -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 --- 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,