changeset 2941:512ddd87f1a8 v7.3.243

updated for version 7.3.243 Problem: Illegal memory access in readline(). Solution: Swap the conditions. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Thu, 07 Jul 2011 17:36:56 +0200
parents 8d85207cec37
children 8c36cfcf3e85
files src/eval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -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'. */
--- a/src/version.c
+++ b/src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    243,
+/**/
     242,
 /**/
     241,