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