diff options
author | Husain Alshehhi <husainaloos@users.noreply.github.com> | 2020-01-01 07:59:37 -0600 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2020-01-01 05:59:37 -0800 |
commit | dec165b268803d08425e0f173b2487c76a2c440c (patch) | |
tree | 8a4bbd61c1b283720957693fbab58a9316701934 /src/nvim/spellfile.c | |
parent | e922576bdd6abd6736417343121120b289079565 (diff) | |
download | rneovim-dec165b268803d08425e0f173b2487c76a2c440c.tar.gz rneovim-dec165b268803d08425e0f173b2487c76a2c440c.tar.bz2 rneovim-dec165b268803d08425e0f173b2487c76a2c440c.zip |
PVS/V618: fix emsgf format specifier #11643
Diffstat (limited to 'src/nvim/spellfile.c')
-rw-r--r-- | src/nvim/spellfile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index 8e4f405d99..14abfda9ff 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -625,7 +625,7 @@ spell_load_file ( switch (scms_ret) { case SP_FORMERROR: case SP_TRUNCERROR: { - emsgf(_("E757: This does not look like a spell file")); + emsgf("%s", _("E757: This does not look like a spell file")); goto endFAIL; } case SP_OTHERERROR: { @@ -2654,8 +2654,9 @@ static afffile_T *spell_read_aff(spellinfo_T *spin, char_u *fname) } if (compsylmax != 0) { - if (syllable == NULL) - smsg(_("COMPOUNDSYLMAX used without SYLLABLE")); + if (syllable == NULL) { + smsg("%s", _("COMPOUNDSYLMAX used without SYLLABLE")); + } aff_check_number(spin->si_compsylmax, compsylmax, "COMPOUNDSYLMAX"); spin->si_compsylmax = compsylmax; } |