To: vim_dev@googlegroups.com Subject: Patch 7.4.1776 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1776 Problem: Using wrong buffer length. Solution: use the right name. (Kazunobu Kuriyama) Files: src/term.c *** ../vim-7.4.1775/src/term.c 2016-04-22 11:48:58.117414653 +0200 --- src/term.c 2016-04-22 20:16:52.566986715 +0200 *************** *** 2804,2810 **** #define MAX_COLOR_STR_LEN 100 char buf[MAX_COLOR_STR_LEN]; ! vim_snprintf(buf, MAX_KEY_CODE_LEN, (char *)s, RED(rgb), GREEN(rgb), BLUE(rgb)); OUT_STR(buf); } --- 2804,2810 ---- #define MAX_COLOR_STR_LEN 100 char buf[MAX_COLOR_STR_LEN]; ! vim_snprintf(buf, MAX_COLOR_STR_LEN, (char *)s, RED(rgb), GREEN(rgb), BLUE(rgb)); OUT_STR(buf); } *** ../vim-7.4.1775/src/version.c 2016-04-22 12:24:44.559573688 +0200 --- src/version.c 2016-04-22 20:18:23.738015238 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1776, /**/ -- ARTHUR: Be quiet! DENNIS: Well you can't expect to wield supreme executive power just 'cause some watery tart threw a sword at you! ARTHUR: Shut up! DENNIS: I mean, if I went around sayin' I was an empereror just because some moistened bint had lobbed a scimitar at me they'd put me away! The Quest for the Holy Grail (Monty Python) /// 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 ///