diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-16 20:22:58 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-16 20:22:58 +0300 |
commit | c5010c98ae8532f7f2778ce0e89a01d9e1ca68f9 (patch) | |
tree | 660f7a39f2f4cea6b337657b6c7a19418b947537 /src | |
parent | 1bc080078793aafcecfae95620f6dac917c737dc (diff) | |
download | rneovim-c5010c98ae8532f7f2778ce0e89a01d9e1ca68f9.tar.gz rneovim-c5010c98ae8532f7f2778ce0e89a01d9e1ca68f9.tar.bz2 rneovim-c5010c98ae8532f7f2778ce0e89a01d9e1ca68f9.zip |
eval: Fix position of buf declaration
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 67d5465896..cf55b42bdf 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -21048,8 +21048,8 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars, char *s = tofree; emsg_off--; if (s != NULL) { + char buf[MSG_BUF_LEN]; if (vim_strsize((char_u *)s) > MSG_BUF_CLEN) { - char buf[MSG_BUF_LEN]; trunc_string((char_u *)s, (char_u *)buf, MSG_BUF_CLEN, sizeof(buf)); s = buf; |