mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Make status_message_set a variadic printf-like function. No functional change -
helpful for a couple of things coming soon.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user