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 | |
parent | e922576bdd6abd6736417343121120b289079565 (diff) | |
download | rneovim-dec165b268803d08425e0f173b2487c76a2c440c.tar.gz rneovim-dec165b268803d08425e0f173b2487c76a2c440c.tar.bz2 rneovim-dec165b268803d08425e0f173b2487c76a2c440c.zip |
PVS/V618: fix emsgf format specifier #11643
-rw-r--r-- | src/nvim/eval/typval.h | 2 | ||||
-rw-r--r-- | src/nvim/spellfile.c | 7 | ||||
-rw-r--r-- | src/nvim/undo.c | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h index 02d241f6f5..008453b87f 100644 --- a/src/nvim/eval/typval.h +++ b/src/nvim/eval/typval.h @@ -798,7 +798,7 @@ static inline bool tv_get_float_chk(const typval_T *const tv, *ret_f = (float_T)tv->vval.v_number; return true; } - emsgf(_("E808: Number or Float required")); + emsgf("%s", _("E808: Number or Float required")); return false; } 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; } diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 539d42765d..980399a3ef 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1057,7 +1057,7 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf, if (file_name == NULL) { if (p_verbose > 0) { verbose_enter(); - smsg(_("Cannot write undo file in any directory in 'undodir'")); + smsg("%s", _("Cannot write undo file in any directory in 'undodir'")); verbose_leave(); } return; |