Patch 8.2.1275
Problem:    Vim9: compiler warning for buffer size.
Solution:   Change the offset from 10 to 15. (Dominique Pellé, closes #6518)
Files:      src/vim9script.c


*** ../vim-8.2.1274/src/vim9script.c    2020-07-22 21:45:10.529629648 +0200
--- src/vim9script.c    2020-07-23 14:37:26.562397639 +0200
***************
*** 198,208 ****
        char_u  *funcname;
  
        // it could be a user function.
!       if (STRLEN(name) < sizeof(buffer) - 10)
            funcname = buffer;
        else
        {
!           funcname = alloc(STRLEN(name) + 10);
            if (funcname == NULL)
                return -1;
        }
--- 198,208 ----
        char_u  *funcname;
  
        // it could be a user function.
!       if (STRLEN(name) < sizeof(buffer) - 15)
            funcname = buffer;
        else
        {
!           funcname = alloc(STRLEN(name) + 15);
            if (funcname == NULL)
                return -1;
        }
*** ../vim-8.2.1274/src/version.c       2020-07-23 13:11:33.251754387 +0200
--- src/version.c       2020-07-23 14:38:49.986050484 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1275,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
65. The last time you looked at the clock it was 11:30pm, and in what
    seems like only a few seconds later, your sister runs past you to
    catch her 7am school bus.

 /// 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/202007231240.06NCeFDS052458%40masaka.moolenaar.net.

Raspunde prin e-mail lui