changeset 8981:3b51b0aeb9a3 v7.4.1776

commit https://github.com/vim/vim/commit/a1c487eef71d1673e57511453009de9cb4c9af51 Author: Bram Moolenaar <Bram@vim.org> 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)
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Apr 2016 20:30:05 +0200
parents 7c4d26abbfff
children 57e814658ff0
files src/term.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }
--- 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,