diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-15 20:19:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-15 20:19:40 +0100 |
commit | b5443cc46dd1485d6c785dd8c65a2c07bd5a17f3 (patch) | |
tree | 0d666a666cf4f5bea6b3afdf8a60059e5991ab8c /src/evalfunc.c | |
parent | 8e481e8dfe0b82930faf005c7e840c49cbcf4511 (diff) |
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/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 8870fd4329..da4ffbf81e 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -8256,7 +8256,7 @@ f_matchadd(typval_T *argvars UNUSED, typval_T *rettv UNUSED) return; if (id >= 1 && id <= 3) { - semsg(_("E798: ID is reserved for \":match\": %ld"), id); + semsg(_("E798: ID is reserved for \":match\": %d"), id); return; } @@ -8314,7 +8314,7 @@ f_matchaddpos(typval_T *argvars UNUSED, typval_T *rettv UNUSED) /* id == 3 is ok because matchaddpos() is supposed to substitute :3match */ if (id == 1 || id == 2) { - semsg(_("E798: ID is reserved for \":match\": %ld"), id); + semsg(_("E798: ID is reserved for \":match\": %d"), id); return; } |