To: vim_dev@googlegroups.com Subject: Patch 8.2.1275 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///