# HG changeset patch # User Bram Moolenaar # Date 1312971061 -7200 # Node ID b9182da84c7eeda221e5219ef4361cca201b3b41 # Parent d53f6e5e57f3e4fed0ebb52ee999e118f5e74098 updated for version 7.3.270 Problem: Illegal memory access. Solution: Swap conditions. (Dominique Pelle) diff --git a/src/ops.c b/src/ops.c --- a/src/ops.c +++ b/src/ops.c @@ -6311,7 +6311,7 @@ line_count_info(line, wc, cc, limit, eol *wc += words; /* Add eol_size if the end of line was reached before hitting limit. */ - if (line[i] == NUL && i < limit) + if (i < limit && line[i] == NUL) { i += eol_size; chars += eol_size; diff --git a/src/version.c b/src/version.c --- 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 */ /**/ + 270, +/**/ 269, /**/ 268,