mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.506
Problem: MS-Windows: Cannot open a file with 259 characters. Solution: Fix off-by-one error. (Ken Takata)
This commit is contained in:
parent
f9e6c3b8b0
commit
374bf024d2
@ -411,7 +411,7 @@ mch_FullName(
|
|||||||
* - convert the result from UCS2 to 'encoding'.
|
* - convert the result from UCS2 to 'encoding'.
|
||||||
*/
|
*/
|
||||||
wname = enc_to_utf16(fname, NULL);
|
wname = enc_to_utf16(fname, NULL);
|
||||||
if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH - 1) != NULL)
|
if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH) != NULL)
|
||||||
{
|
{
|
||||||
cname = utf16_to_enc((short_u *)wbuf, NULL);
|
cname = utf16_to_enc((short_u *)wbuf, NULL);
|
||||||
if (cname != NULL)
|
if (cname != NULL)
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
506,
|
||||||
/**/
|
/**/
|
||||||
505,
|
505,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user