| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.522 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.522 |
| Problem: Specifying wrong buffer size for GetLongPathName(). |
| Solution: Use the actual size. (Ken Takata) |
| Files: src/eval.c |
| |
| |
| |
| |
| |
| *** 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; |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 522, |
| /**/ |
| |
| -- |
| Every person is responsible for the choices he makes. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 /// |