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