diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-01-30 14:42:06 +0100 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-01-30 14:42:06 +0100 |
commit | a984203bd6349a26042998db50b4efc90ae65751 (patch) | |
tree | 57967a712f3b5c81226ef5060872650585a129b8 /src/nvim/eval.c | |
parent | 7179f43666768ac81c0e5a350f57f53c2cc39c3c (diff) | |
download | rneovim-a984203bd6349a26042998db50b4efc90ae65751.tar.gz rneovim-a984203bd6349a26042998db50b4efc90ae65751.tar.bz2 rneovim-a984203bd6349a26042998db50b4efc90ae65751.zip |
Fix linter errors.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index d5dc694f6a..87d0ae4d88 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -15256,7 +15256,7 @@ static void f_setmatches(typval_T *argvars, typval_T *rettv) // match from matchaddpos() for (i = 1; i < 9; ++i) { - sprintf((char *)buf, (char *)"pos%d", i); + snprintf((char *)buf, sizeof(buf), (char *)"pos%d", i); if ((di = dict_find(d, (char_u *)buf, -1)) != NULL) { if (di->di_tv.v_type != VAR_LIST) { return; @@ -15271,12 +15271,12 @@ static void f_setmatches(typval_T *argvars, typval_T *rettv) } if (i == 0) { - match_add(curwin, get_dict_string(d, (char_u *)"group", FALSE), - get_dict_string(d, (char_u *)"pattern", FALSE), + match_add(curwin, get_dict_string(d, (char_u *)"group", false), + get_dict_string(d, (char_u *)"pattern", false), (int)get_dict_number(d, (char_u *)"priority"), (int)get_dict_number(d, (char_u *)"id"), NULL); } else { - match_add(curwin, get_dict_string(d, (char_u *)"group", FALSE), + match_add(curwin, get_dict_string(d, (char_u *)"group", false), NULL, (int)get_dict_number(d, (char_u *)"priority"), (int)get_dict_number(d, (char_u *)"id"), s); list_unref(s); |