0
0
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:
Bram Moolenaar
2011-07-07 17:36:56 +02:00
parent b5ce04dd28
commit f56a6de10b
2 changed files with 3 additions and 1 deletions

View File

@@ -14318,7 +14318,7 @@ f_readfile(argvars, rettv)
tolist = 0; tolist = 0;
for ( ; filtd < buflen || readlen <= 0; ++filtd) 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 /* In binary mode add an empty list item when the last
* non-empty line ends in a '\n'. */ * non-empty line ends in a '\n'. */

View File

@@ -709,6 +709,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 */
/**/
243,
/**/ /**/
242, 242,
/**/ /**/