summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-29 13:34:19 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-29 13:34:19 +0200
commit88b1ba151ae7bb66dc92c85f1eb63fe7fcc03051 (patch)
tree37f79b98a0f3847b8b09640582b7596bf8940848
parenta53c60d33c917455857de96a44e109da7d305d8a (diff)
downloadvim-git-88b1ba151ae7bb66dc92c85f1eb63fe7fcc03051.tar.gz
updated for version 7.3.573v7.3.573
Problem: Using array index before bounds checking. Solution: Swap the parts of the condition. (Dominique Pelle)
-rw-r--r--src/ops.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 845211dff..2c054d9b8 100644
--- 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)
{
diff --git a/src/version.c b/src/version.c
index d424af75f..ebe198810 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 573,
+/**/
572,
/**/
571,