Mercurial > vim
diff src/ex_docmd.c @ 15490:98c35d312987 v8.1.0753
patch 8.1.0753: printf format not checked for semsg()
commit https://github.com/vim/vim/commit/b5443cc46dd1485d6c785dd8c65a2c07bd5a17f3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 15 20:19:40 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 15 Jan 2019 20:30:07 +0100 |
parents | da8b98c008bf |
children | 41fbbcea0f1b |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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. *