Patch 7.4.522
Problem:    Specifying wrong buffer size for GetLongPathName().
Solution:   Use the actual size. (Ken Takata)
Files:      src/eval.c


*** ../vim-7.4.521/src/eval.c   2014-11-12 20:09:02.875529458 +0100
--- src/eval.c  2014-11-19 18:01:14.560028682 +0100
***************
*** 24762,24768 ****
            p = alloc(_MAX_PATH + 1);
            if (p != NULL)
            {
!               if (GetLongPathName(*fnamep, p, MAXPATHL))
                {
                    vim_free(*bufp);
                    *bufp = *fnamep = p;
--- 24762,24768 ----
            p = alloc(_MAX_PATH + 1);
            if (p != NULL)
            {
!               if (GetLongPathName(*fnamep, p, _MAX_PATH))
                {
                    vim_free(*bufp);
                    *bufp = *fnamep = p;
*** ../vim-7.4.521/src/version.c        2014-11-19 17:35:35.085446649 +0100
--- src/version.c       2014-11-19 18:02:02.003491140 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     522,
  /**/

-- 
Every person is responsible for the choices he makes.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui