Skip to content
Snippets Groups Projects
Commit f56a6de1 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

updated for version 7.3.243

Problem:    Illegal memory access in readline().
Solution:   Swap the conditions. (Dominique Pelle)
parent b5ce04dd
No related merge requests found
......@@ -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,
/**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment