summaryrefslogtreecommitdiffstats
path: root/hook.c
diff options
context:
space:
mode:
authorTAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>2017-06-01 13:33:21 -0700
committerTAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>2017-06-01 13:33:21 -0700
commitcd3b603d9ebf5c305802b33d789ca610141e869b (patch)
treead15733091409806ebf7fdd844e93c8c57d99a95 /hook.c
parente7c88e4b8d0513967c220e419cbe76b5a575300d (diff)
Fix "format string is not a string literal" warnings. (closes #3949)
Mutt calls msgfmt with '-c' to verify that translation format strings match, but it is still safer to indirect strings with no formatting through %s.
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hook.c b/hook.c
index 0cb40344..540d7867 100644
--- a/hook.c
+++ b/hook.c
@@ -275,7 +275,7 @@ int mutt_parse_unhook (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
{
if (current_hook_type)
{
- snprintf (err->data, err->dsize,
+ snprintf (err->data, err->dsize, "%s",
_("unhook: Can't do unhook * from within a hook."));
return -1;
}