diff options
author | James McCoy <jamessan@jamessan.com> | 2016-07-08 01:36:23 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-07-08 01:45:21 -0400 |
commit | 059e9785dc2fea0a15344162de4a5a7c8da6f491 (patch) | |
tree | 4be6079a8571316cbd89e3f310981b080f2815a4 /src/nvim/option.c | |
parent | 86b4f6856b52b311137467af9a631f7e567dcfbf (diff) | |
download | rneovim-059e9785dc2fea0a15344162de4a5a7c8da6f491.tar.gz rneovim-059e9785dc2fea0a15344162de4a5a7c8da6f491.tar.bz2 rneovim-059e9785dc2fea0a15344162de4a5a7c8da6f491.zip |
lint
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index fad46ddf2d..81f57522b3 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3187,7 +3187,8 @@ did_set_string_option ( for (p = q; *p != NUL; ++p) if (vim_strchr((char_u *)"_.,", *p) != NULL) break; - vim_snprintf((char *)fname, 200, "spell/%.*s.vim", (int)(p - q), q); + vim_snprintf((char *)fname, sizeof(fname), "spell/%.*s.vim", + (int)(p - q), q); source_runtime(fname, DIP_ALL); } } |