]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.4.522 v7.4.522
authorBram Moolenaar <Bram@vim.org>
Wed, 19 Nov 2014 17:03:28 +0000 (18:03 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 19 Nov 2014 17:03:28 +0000 (18:03 +0100)
Problem:    Specifying wrong buffer size for GetLongPathName().
Solution:   Use the actual size. (Ken Takata)

src/eval.c
src/version.c

index 1b1072cd80ad70298fed2ac6771921ac630e8d9c..c7cc0089d383d6740d6b74cadab2d504b50d478b 100644 (file)
@@ -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;
index 758c68635573725d86399251eb00bdbea1bd6622..7a86692d7c344c9293caa72fe7b49d62135e75da 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    522,
 /**/
     521,
 /**/