mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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'. */
|
||||
|
Reference in New Issue
Block a user