summaryrefslogtreecommitdiff
path: root/src/sign.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/sign.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/sign.c')
-rw-r--r--src/sign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sign.c b/src/sign.c
index 734dd257e..6f7ead963 100644
--- a/src/sign.c
+++ b/src/sign.c
@@ -162,7 +162,7 @@ sign_group_get_next_signid(buf_T *buf, char_u *groupname)
group = HI2SG(hi);
}
- // Search for the next usuable sign identifier
+ // Search for the next usable sign identifier
while (!found)
{
if (group == NULL)
@@ -996,7 +996,7 @@ sign_jump(int sign_id, char_u *sign_group, buf_T *buf)
if ((lnum = buf_findsign(buf, sign_id, sign_group)) <= 0)
{
- semsg(_("E157: Invalid sign ID: %ld"), sign_id);
+ semsg(_("E157: Invalid sign ID: %d"), sign_id);
return -1;
}