mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
PVS/V618: fix emsgf format specifier #11643
This commit is contained in:

committed by
Justin M. Keyes

parent
e922576bdd
commit
dec165b268
@@ -798,7 +798,7 @@ static inline bool tv_get_float_chk(const typval_T *const tv,
|
|||||||
*ret_f = (float_T)tv->vval.v_number;
|
*ret_f = (float_T)tv->vval.v_number;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
emsgf(_("E808: Number or Float required"));
|
emsgf("%s", _("E808: Number or Float required"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -625,7 +625,7 @@ spell_load_file (
|
|||||||
switch (scms_ret) {
|
switch (scms_ret) {
|
||||||
case SP_FORMERROR:
|
case SP_FORMERROR:
|
||||||
case SP_TRUNCERROR: {
|
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;
|
goto endFAIL;
|
||||||
}
|
}
|
||||||
case SP_OTHERERROR: {
|
case SP_OTHERERROR: {
|
||||||
@@ -2654,8 +2654,9 @@ static afffile_T *spell_read_aff(spellinfo_T *spin, char_u *fname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (compsylmax != 0) {
|
if (compsylmax != 0) {
|
||||||
if (syllable == NULL)
|
if (syllable == NULL) {
|
||||||
smsg(_("COMPOUNDSYLMAX used without SYLLABLE"));
|
smsg("%s", _("COMPOUNDSYLMAX used without SYLLABLE"));
|
||||||
|
}
|
||||||
aff_check_number(spin->si_compsylmax, compsylmax, "COMPOUNDSYLMAX");
|
aff_check_number(spin->si_compsylmax, compsylmax, "COMPOUNDSYLMAX");
|
||||||
spin->si_compsylmax = compsylmax;
|
spin->si_compsylmax = compsylmax;
|
||||||
}
|
}
|
||||||
|
@@ -1057,7 +1057,7 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf,
|
|||||||
if (file_name == NULL) {
|
if (file_name == NULL) {
|
||||||
if (p_verbose > 0) {
|
if (p_verbose > 0) {
|
||||||
verbose_enter();
|
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();
|
verbose_leave();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user