forked from aniani/vim
updated for version 7.3.243
Problem: Illegal memory access in readline(). Solution: Swap the conditions. (Dominique Pelle)
This commit is contained in:
@@ -14318,7 +14318,7 @@ f_readfile(argvars, rettv)
|
||||
tolist = 0;
|
||||
for ( ; filtd < buflen || readlen <= 0; ++filtd)
|
||||
{
|
||||
if (buf[filtd] == '\n' || readlen <= 0)
|
||||
if (readlen <= 0 || buf[filtd] == '\n')
|
||||
{
|
||||
/* In binary mode add an empty list item when the last
|
||||
* non-empty line ends in a '\n'. */
|
||||
|
@@ -709,6 +709,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
243,
|
||||
/**/
|
||||
242,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user