Blame SOURCES/7.4.522

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.522
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.522
22c937
Problem:    Specifying wrong buffer size for GetLongPathName().
22c937
Solution:   Use the actual size. (Ken Takata)
22c937
Files:	    src/eval.c
22c937
22c937
22c937
*** ../vim-7.4.521/src/eval.c	2014-11-12 20:09:02.875529458 +0100
22c937
--- src/eval.c	2014-11-19 18:01:14.560028682 +0100
22c937
***************
22c937
*** 24762,24768 ****
22c937
  	    p = alloc(_MAX_PATH + 1);
22c937
  	    if (p != NULL)
22c937
  	    {
22c937
! 		if (GetLongPathName(*fnamep, p, MAXPATHL))
22c937
  		{
22c937
  		    vim_free(*bufp);
22c937
  		    *bufp = *fnamep = p;
22c937
--- 24762,24768 ----
22c937
  	    p = alloc(_MAX_PATH + 1);
22c937
  	    if (p != NULL)
22c937
  	    {
22c937
! 		if (GetLongPathName(*fnamep, p, _MAX_PATH))
22c937
  		{
22c937
  		    vim_free(*bufp);
22c937
  		    *bufp = *fnamep = p;
22c937
*** ../vim-7.4.521/src/version.c	2014-11-19 17:35:35.085446649 +0100
22c937
--- src/version.c	2014-11-19 18:02:02.003491140 +0100
22c937
***************
22c937
*** 743,744 ****
22c937
--- 743,746 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     522,
22c937
  /**/
22c937
22c937
-- 
22c937
Every person is responsible for the choices he makes.
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///