Patch 7.4.2028
Problem: cppcheck warns for using index before limits check.
Solution: Swap the expressions. (Dominique Pelle)
Files: src/mbyte.c
*** ../vim-7.4.2027/src/mbyte.c 2016-07-10 18:24:22.810549520 +0200
--- src/mbyte.c 2016-07-11 23:17:19.852298696 +0200
***************
*** 4357,4363 ****
else
s = p + 1;
}
! for (i = 0; s[i] != NUL && i < (int)sizeof(buf) - 1; ++i)
{
if (s[i] == '_' || s[i] == '-')
buf[i] = '-';
--- 4357,4363 ----
else
s = p + 1;
}
! for (i = 0; i < (int)sizeof(buf) - 1 && s[i] != NUL; ++i)
{
if (s[i] == '_' || s[i] == '-')
buf[i] = '-';
*** ../vim-7.4.2027/src/version.c 2016-07-11 23:15:21.382070070 +0200
--- src/version.c 2016-07-11 23:18:04.943624926 +0200
***************
*** 760,761 ****
--- 760,763 ----
{ /* Add new patch number below this line */
+ /**/
+ 2028,
/**/
--
Ten bugs in the hand is better than one as yet undetected.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.