diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:50:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:50:11 +0000 |
commit | 222b8e67435e41869802d3becd4060e9f65f9c9f (patch) | |
tree | 5c83069dd56b20f4d5d1b9790e9aa5c50292d27f /cmd-select-prompt.c | |
parent | d6908dd9c2dcf4262632692ea554ff4fa4d99bee (diff) | |
download | rtmux-222b8e67435e41869802d3becd4060e9f65f9c9f.tar.gz rtmux-222b8e67435e41869802d3becd4060e9f65f9c9f.tar.bz2 rtmux-222b8e67435e41869802d3becd4060e9f65f9c9f.zip |
Make status_message_set a variadic printf-like function. No functional change -
helpful for a couple of things coming soon.
Diffstat (limited to 'cmd-select-prompt.c')
-rw-r--r-- | cmd-select-prompt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-select-prompt.c b/cmd-select-prompt.c index 1338d845..d02916e1 100644 --- a/cmd-select-prompt.c +++ b/cmd-select-prompt.c @@ -1,4 +1,4 @@ -/* $Id: cmd-select-prompt.c,v 1.8 2009-07-14 06:43:32 nicm Exp $ */ +/* $Id: cmd-select-prompt.c,v 1.9 2009-07-15 17:50:11 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -74,14 +74,14 @@ cmd_select_prompt_callback(void *data, const char *s) idx = strtonum(s, 0, UINT_MAX, &errstr); if (errstr != NULL) { xsnprintf(msg, sizeof msg, "Index %s: %s", errstr, s); - status_message_set(c, msg); + status_message_set(c, "%s", msg); return (0); } if (winlink_find_by_index(&c->session->windows, idx) == NULL) { xsnprintf(msg, sizeof msg, "Window not found: %s:%d", c->session->name, idx); - status_message_set(c, msg); + status_message_set(c, "%s", msg); return (0); } |