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:
Nicholas Marriott
2009-07-15 17:39:00 +00:00
parent 780fd8f7a6
commit 92da443a9e
6 changed files with 13 additions and 10 deletions

View File

@ -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;
}