Patch 8.0.1626
Problem: Compiler warning for possible loss of data.
Solution: Use size_t instead of int. (Christian Brabandt)
Files: src/terminal.c
*** ../vim-8.0.1625/src/terminal.c 2018-03-20 18:35:31.158086030 +0100
--- src/terminal.c 2018-03-21 22:24:57.291937899 +0100
***************
*** 3773,3781 ****
if (opt.jo_term_name == NULL)
{
! int len = STRLEN(fname1) + 12;
! fname_tofree = alloc(len);
if (fname_tofree != NULL)
{
vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1);
--- 3773,3781 ----
if (opt.jo_term_name == NULL)
{
! size_t len = STRLEN(fname1) + 12;
! fname_tofree = alloc((int)len);
if (fname_tofree != NULL)
{
vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1);
*** ../vim-8.0.1625/src/version.c 2018-03-20 21:24:40.953118253 +0100
--- src/version.c 2018-03-21 22:25:49.627611793 +0100
***************
*** 768,769 ****
--- 768,771 ----
{ /* Add new patch number below this line */
+ /**/
+ 1626,
/**/
--
Change is inevitable, except from a vending machine.
/// 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.