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:50:11 +00:00
parent d6908dd9c2
commit 222b8e6743
6 changed files with 19 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $Id: cmd-confirm-before.c,v 1.5 2009-07-14 06:43:32 nicm Exp $ */
/* $Id: cmd-confirm-before.c,v 1.6 2009-07-15 17:50:11 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@ -113,7 +113,7 @@ cmd_confirm_before_callback(void *data, const char *s)
if (cmd_string_parse(cdata->cmd, &cmdlist, &cause) != 0) {
if (cause != NULL) {
*cause = toupper((u_char) *cause);
status_message_set(c, cause);
status_message_set(c, "%s", cause);
xfree(cause);
}
goto out;