From: Bram Moolenaar Date: Fri, 22 Apr 2016 18:20:19 +0000 (+0200) Subject: patch 7.4.1776 X-Git-Tag: v7.4.1776 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1c487eef71d1673e57511453009de9cb4c9af51;p=thirdparty%2Fvim.git 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 index 29b48e9002..059aed7298 100644 --- 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 index 2d0abebd6c..1c35576b09 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1776, /**/ 1775, /**/