diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-15 17:39:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-15 17:39:00 +0000 |
commit | 92da443a9e02a2238d4415e0dcf3796d3929b290 (patch) | |
tree | dba39ebf34f33d4d399e9dc73591e2a6668c8f07 /key-bindings.c | |
parent | 780fd8f7a6fde6f14016f3c4f94f04d8118859c1 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/key-bindings.c b/key-bindings.c index 438836f3..6fb3b89d 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -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); } |