]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.243 v7.3.243
authorBram Moolenaar <Bram@vim.org>
Thu, 7 Jul 2011 15:36:56 +0000 (17:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 7 Jul 2011 15:36:56 +0000 (17:36 +0200)
Problem:    Illegal memory access in readline().
Solution:   Swap the conditions. (Dominique Pelle)

src/eval.c
src/version.c

index e11170736596621765f60e1ff712ed674684b157..0ee5b7a0e9a4423946fce53e2c80644ced0d6b11 100644 (file)
@@ -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'. */
index 4826a51544c58e71f34653ad7286c29c5d792f94..ae75308e51a85c129f8609469876c66ac0190686 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    243,
 /**/
     242,
 /**/