summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-15 17:50:11 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-15 17:50:11 +0000
commit222b8e67435e41869802d3becd4060e9f65f9c9f (patch)
tree5c83069dd56b20f4d5d1b9790e9aa5c50292d27f /key-bindings.c
parentd6908dd9c2dcf4262632692ea554ff4fa4d99bee (diff)
Make status_message_set a variadic printf-like function. No functional change -
helpful for a couple of things coming soon.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/key-bindings.c b/key-bindings.c
index d383530b..a9c7a185 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -1,4 +1,4 @@
-/* $Id: key-bindings.c,v 1.73 2009-07-14 06:39:25 nicm Exp $ */
+/* $Id: key-bindings.c,v 1.74 2009-07-15 17:50:11 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -194,7 +194,7 @@ key_bindings_error(struct cmd_ctx *ctx, const char *fmt, ...)
va_end(ap);
*msg = toupper((u_char) *msg);
- status_message_set(ctx->curclient, msg);
+ status_message_set(ctx->curclient, "%s", msg);
xfree(msg);
}
@@ -227,7 +227,7 @@ key_bindings_info(struct cmd_ctx *ctx, const char *fmt, ...)
va_end(ap);
*msg = toupper((u_char) *msg);
- status_message_set(ctx->curclient, msg);
+ status_message_set(ctx->curclient, "%s", msg);
xfree(msg);
}