summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-31 14:46:00 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-31 14:46:00 +0100
commit6a12e3342d84a1d754d793ed5019778bd60e7494 (patch)
tree988d7c24fc9517a8a7dc6809a2566cbf241e5690 /src
parent4d8479b335e92a95b09fdee09309ea0df934cb9e (diff)
patch 8.2.2438: out of bounds compiler warningv8.2.2438
Problem: Out of bounds compiler warning. Solution: Increase the size of uf_name.
Diffstat (limited to 'src')
-rw-r--r--src/structs.h4
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/structs.h b/src/structs.h
index bd59656b7c..6cdfb4fc5c 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1649,8 +1649,8 @@ typedef struct
char_u *uf_name_exp; // if "uf_name[]" starts with SNR the name with
// "<SNR>" as a string, otherwise NULL
- char_u uf_name[1]; // name of function (actually longer); can
- // start with <SNR>123_ (<SNR> is K_SPECIAL
+ char_u uf_name[4]; // name of function (actual size equals name);
+ // can start with <SNR>123_ (<SNR> is K_SPECIAL
// KS_EXTRA KE_SNR)
} ufunc_T;
diff --git a/src/version.c b/src/version.c
index 903f3fd604..fe5d219360 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2438,
+/**/
2437,
/**/
2436,