0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.573

Problem:    Using array index before bounds checking.
Solution:   Swap the parts of the condition. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2012-06-29 13:34:19 +02:00
parent a53c60d33c
commit 88b1ba151a
2 changed files with 3 additions and 1 deletions

View File

@@ -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)
{

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
573,
/**/
572,
/**/