Skip to content

Commit 6a12e33

Browse files
committed
patch 8.2.2438: out of bounds compiler warning
Problem: Out of bounds compiler warning. Solution: Increase the size of uf_name.
1 parent 4d8479b commit 6a12e33

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/structs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,8 +1649,8 @@ typedef struct
16491649

16501650
char_u *uf_name_exp; // if "uf_name[]" starts with SNR the name with
16511651
// "<SNR>" as a string, otherwise NULL
1652-
char_u uf_name[1]; // name of function (actually longer); can
1653-
// start with <SNR>123_ (<SNR> is K_SPECIAL
1652+
char_u uf_name[4]; // name of function (actual size equals name);
1653+
// can start with <SNR>123_ (<SNR> is K_SPECIAL
16541654
// KS_EXTRA KE_SNR)
16551655
} ufunc_T;
16561656

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2438,
753755
/**/
754756
2437,
755757
/**/

0 commit comments

Comments
 (0)