diff options
Diffstat (limited to 'cmd-select-prompt.c')
-rw-r--r-- | cmd-select-prompt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-select-prompt.c b/cmd-select-prompt.c index 5221fa1e..8b707342 100644 --- a/cmd-select-prompt.c +++ b/cmd-select-prompt.c @@ -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); } |