summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-15 20:19:40 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-15 20:19:40 +0100
commitb5443cc46dd1485d6c785dd8c65a2c07bd5a17f3 (patch)
tree0d666a666cf4f5bea6b3afdf8a60059e5991ab8c /src/ex_docmd.c
parent8e481e8dfe0b82930faf005c7e840c49cbcf4511 (diff)
downloadvim-git-b5443cc46dd1485d6c785dd8c65a2c07bd5a17f3.tar.gz
patch 8.1.0753: printf format not checked for semsg()v8.1.0753
Problem: printf format not checked for semsg(). Solution: Add GNUC attribute and fix reported problems. (Dominique Pelle, closes #3805)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index dddbf8304..7dc805ec1 100644
--- 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.
*