]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.573 v7.3.573
authorBram Moolenaar <Bram@vim.org>
Fri, 29 Jun 2012 11:34:19 +0000 (13:34 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 29 Jun 2012 11:34:19 +0000 (13:34 +0200)
Problem:    Using array index before bounds checking.
Solution:   Swap the parts of the condition. (Dominique Pelle)

src/ops.c
src/version.c

index 845211dff634e5fa5e9896d3e00f1e0c0a6d0742..2c054d9b8890d29d10cce7cf6f84a8965d5a69e1 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -6458,7 +6458,7 @@ line_count_info(line, wc, cc, limit, eol_size)
     long       chars = 0;
     int                is_word = 0;
 
-    for (i = 0; line[i] && i < limit; )
+    for (i = 0; i < limit && line[i] != NUL; )
     {
        if (is_word)
        {
index d424af75f8afee30c5003d95123e4fb4f593d8f9..ebe198810077da86266a233a50a0f8de9df78eef 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    573,
 /**/
     572,
 /**/