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

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