diff options
author | 2009-07-15 17:39:00 +0000 | |
---|---|---|
committer | 2009-07-15 17:39:00 +0000 | |
commit | 22864d78b17195ea0186954ceefd62cdf9193daa (patch) | |
tree | ee32a733d6a8e264993a671e07f43a76262fcff0 /usr.bin/tmux/cmd-command-prompt.c | |
parent | print interrupt string like com at puc does (diff) | |
download | wireguard-openbsd-22864d78b17195ea0186954ceefd62cdf9193daa.tar.xz wireguard-openbsd-22864d78b17195ea0186954ceefd62cdf9193daa.zip |
Make status_message_set a variadic printf-like function. No functional change -
helpful for a couple of things coming soon.
Diffstat (limited to 'usr.bin/tmux/cmd-command-prompt.c')
-rw-r--r-- | usr.bin/tmux/cmd-command-prompt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-command-prompt.c b/usr.bin/tmux/cmd-command-prompt.c index 9f040fd1f63..1e0012e945c 100644 --- a/usr.bin/tmux/cmd-command-prompt.c +++ b/usr.bin/tmux/cmd-command-prompt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-command-prompt.c,v 1.2 2009/07/13 23:11:35 nicm Exp $ */ +/* $OpenBSD: cmd-command-prompt.c,v 1.3 2009/07/15 17:39:00 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -150,7 +150,7 @@ cmd_command_prompt_callback(void *data, const char *s) if (cause == NULL) return (0); *cause = toupper((u_char) *cause); - status_message_set(c, cause); + status_message_set(c, "%s", cause); xfree(cause); cmdlist = NULL; } |