# HG changeset patch # User Christian Brabandt # Date 1461349805 -7200 # Node ID 3b51b0aeb9a37160639fea313b7346b8db752fe5 # Parent 7c4d26abbfffca1d933fe501d21ba0ae95c667bf commit https://github.com/vim/vim/commit/a1c487eef71d1673e57511453009de9cb4c9af51 Author: Bram Moolenaar Date: Fri Apr 22 20:20:19 2016 +0200 patch 7.4.1776 Problem: Using wrong buffer length. Solution: use the right name. (Kazunobu Kuriyama) diff --git a/src/term.c b/src/term.c --- a/src/term.c +++ b/src/term.c @@ -2804,7 +2804,7 @@ term_rgb_color(char_u *s, long_u rgb) #define MAX_COLOR_STR_LEN 100 char buf[MAX_COLOR_STR_LEN]; - vim_snprintf(buf, MAX_KEY_CODE_LEN, + vim_snprintf(buf, MAX_COLOR_STR_LEN, (char *)s, RED(rgb), GREEN(rgb), BLUE(rgb)); OUT_STR(buf); } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1776, +/**/ 1775, /**/ 1774,