0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 7.4.1780

Problem:    Warnings reported by cppcheck.
Solution:   Fix the warnings. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2016-04-23 14:33:19 +02:00
parent 73dfe917ba
commit dc633cf827
6 changed files with 16 additions and 12 deletions

View File

@@ -1197,7 +1197,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)