Patch 8.2.0063
Problem: Wrong size argument to vim_snprintf(). (Dominique Pelle)
Solution: Reduce the size by the length. (related to #5410)
Files: src/ops.c
*** ../vim-8.2.0062/src/ops.c 2019-12-17 22:10:54.564370706 +0100
--- src/ops.c 2019-12-30 20:37:38.566321032 +0100
***************
*** 3813,3820 ****
bom_count = bomb_size();
if (dict == NULL && bom_count > 0)
! vim_snprintf((char *)IObuff + STRLEN(IObuff), IOSIZE,
_("(+%lld for BOM)"), (long_long_T)bom_count);
if (dict == NULL)
{
// Don't shorten this message, the user asked for it.
--- 3813,3824 ----
bom_count = bomb_size();
if (dict == NULL && bom_count > 0)
! {
! size_t len = STRLEN(IObuff);
!
! vim_snprintf((char *)IObuff + len, IOSIZE - len,
_("(+%lld for BOM)"), (long_long_T)bom_count);
+ }
if (dict == NULL)
{
// Don't shorten this message, the user asked for it.
*** ../vim-8.2.0062/src/version.c 2019-12-30 19:59:21.518539566 +0100
--- src/version.c 2019-12-30 20:38:17.422156273 +0100
***************
*** 744,745 ****
--- 744,747 ----
{ /* Add new patch number below this line */
+ /**/
+ 63,
/**/
--
Advice to worms: Sleep late.
/// 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201912301943.xBUJh9xx017544%40masaka.moolenaar.net.