PVS/V618: fix emsgf format specifier #11643

This commit is contained in:
Husain Alshehhi
2020-01-01 07:59:37 -06:00
committed by Justin M. Keyes
parent e922576bdd
commit dec165b268
3 changed files with 6 additions and 5 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;