aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-21 19:02:50 +0800
committerGitHub <noreply@github.com>2023-04-21 19:02:50 +0800
commitebfb6399d957f893fd3943cd1f495dbc83a44d47 (patch)
tree73efa99460a9ca2fd80f5ff650cb0cc04c387611 /src/nvim/api/vim.c
parent3e41121e860f57316673e53a442e12cdd5755f15 (diff)
parent4d654472e65ed28b7cd9e66c91d98b9991452266 (diff)
downloadrneovim-ebfb6399d957f893fd3943cd1f495dbc83a44d47.tar.gz
rneovim-ebfb6399d957f893fd3943cd1f495dbc83a44d47.tar.bz2
rneovim-ebfb6399d957f893fd3943cd1f495dbc83a44d47.zip
Merge pull request #23239 from cryptomilk/asn-fix-warnings
Fix compiler warnings detected by gcc 13
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index c8bb22b33c..d47f47e638 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -2241,7 +2241,7 @@ Dictionary nvim_eval_statusline(String str, Dict(eval_statusline) *opts, Error *
if (highlights) {
Array hl_values = ARRAY_DICT_INIT;
const char *grpname;
- char user_group[6];
+ char user_group[15]; // strlen("User") + strlen("2147483647") + NUL
// If first character doesn't have a defined highlight,
// add the default highlight at the beginning of the highlight list