vim-patch:7.4.1780 (#5828)

Problem:    Warnings reported by cppcheck.
Solution:   Fix the warnings. (Dominique Pelle)

dc633cf827
This commit is contained in:
lonerover
2016-12-27 00:25:59 +08:00
committed by Justin M. Keyes
parent c1d1493eb2
commit 18cb09e095
3 changed files with 3 additions and 3 deletions

View File

@@ -566,7 +566,7 @@ open_line (
int i;
int l;
for (i = 0; p[i] != NUL && i < lead_len; i += l) {
for (i = 0; i < lead_len && p[i] != NUL; i += l) {
l = (*mb_ptr2len)(p + i);
if (vim_strnsize(p, i + l) > repl_size)
break;