diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-11 08:11:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 08:11:15 +0800 |
commit | 8c7a8be27437d8f2d640daf1c2598d4c18933e04 (patch) | |
tree | d9d786e4df879e285205eebf4447b5f3aabc352d /src/nvim/strings.c | |
parent | a2c158ad063bef6d43687dcf78956cd4e56717e4 (diff) | |
download | rneovim-8c7a8be27437d8f2d640daf1c2598d4c18933e04.tar.gz rneovim-8c7a8be27437d8f2d640daf1c2598d4c18933e04.tar.bz2 rneovim-8c7a8be27437d8f2d640daf1c2598d4c18933e04.zip |
fix: transposed xcalloc arguments (#28695)
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index a04aaa8f60..cc61b24f16 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -943,7 +943,7 @@ static int adjust_types(const char ***ap_types, int arg, int *num_posarg, const { if (*ap_types == NULL || *num_posarg < arg) { const char **new_types = *ap_types == NULL - ? xcalloc(sizeof(const char *), (size_t)arg) + ? xcalloc((size_t)arg, sizeof(const char *)) : xrealloc(*ap_types, (size_t)arg * sizeof(const char *)); for (int idx = *num_posarg; idx < arg; idx++) { |