0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0753: printf format not checked for semsg()

Problem:    printf format not checked for semsg().
Solution:   Add GNUC attribute and fix reported problems. (Dominique Pelle,
            closes #3805)
This commit is contained in:
Bram Moolenaar
2019-01-15 20:19:40 +01:00
parent 8e481e8dfe
commit b5443cc46d
16 changed files with 55 additions and 31 deletions

View File

@@ -1347,7 +1347,7 @@ do_cmdline(
}
else if (p != NULL)
{
semsg(p);
emsg(p);
vim_free(p);
}
vim_free(sourcing_name);
@@ -5788,8 +5788,8 @@ check_more(
return FAIL;
}
#endif
semsg(NGETTEXT("E173: %ld more file to edit",
"E173: %ld more files to edit", n), n);
semsg(NGETTEXT("E173: %d more file to edit",
"E173: %d more files to edit", n), n);
quitmore = 2; /* next try to quit is allowed */
}
return FAIL;
@@ -6958,7 +6958,7 @@ do_ucmd(exarg_T *eap)
}
}
/* break if there no <item> is found */
/* break if no <item> is found */
if (start == NULL || end == NULL)
break;
@@ -8022,7 +8022,7 @@ handle_drop_internal(void)
/*
* Handle a file drop. The code is here because a drop is *nearly* like an
* :args command, but not quite (we have a list of exact filenames, so we
* don't want to (a) parse a command line, or (b) expand wildcards. So the
* don't want to (a) parse a command line, or (b) expand wildcards). So the
* code is very similar to :args and hence needs access to a lot of the static
* functions in this file.
*