diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-22 20:20:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-22 20:20:19 +0200 |
commit | a1c487eef71d1673e57511453009de9cb4c9af51 (patch) | |
tree | 6b8863bc3b264d82d0fbca752c9b950061ca4a75 | |
parent | 763b684373bf5954445d8d8d99da1e39a4fc5105 (diff) |
patch 7.4.1776v7.4.1776
Problem: Using wrong buffer length.
Solution: use the right name. (Kazunobu Kuriyama)
-rw-r--r-- | src/term.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1776, +/**/ 1775, /**/ 1774, |