0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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

@@ -1407,7 +1407,7 @@ do_buffer(
else
#endif
{
semsg(_("E89: No write since last change for buffer %ld (add ! to override)"),
semsg(_("E89: No write since last change for buffer %d (add ! to override)"),
buf->b_fnum);
return FAIL;
}
@@ -2283,7 +2283,7 @@ buflist_getfile(
if ((options & GETF_ALT) && n == 0)
emsg(_(e_noalt));
else
semsg(_("E92: Buffer %ld not found"), n);
semsg(_("E92: Buffer %d not found"), n);
return FAIL;
}