diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-27 17:28:30 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-27 17:28:30 +0000 |
commit | 6317046bd17012dadb4debdf3db9d7deaec3a032 (patch) | |
tree | 8646950b5d1ea48ead15e45785bc26ef2cfc9e8e | |
parent | 5d1b6888dc11a201129a87cfe22ee514597eacf3 (diff) | |
download | rtmux-6317046bd17012dadb4debdf3db9d7deaec3a032.tar.gz rtmux-6317046bd17012dadb4debdf3db9d7deaec3a032.tar.bz2 rtmux-6317046bd17012dadb4debdf3db9d7deaec3a032.zip |
Use cmd_prarg to include "s when necessary.
-rw-r--r-- | cmd-confirm-before.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-confirm-before.c b/cmd-confirm-before.c index 71cbe61c..39edda91 100644 --- a/cmd-confirm-before.c +++ b/cmd-confirm-before.c @@ -1,4 +1,4 @@ -/* $Id: cmd-confirm-before.c,v 1.2 2009-04-27 17:27:36 nicm Exp $ */ +/* $Id: cmd-confirm-before.c,v 1.3 2009-04-27 17:28:30 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -171,7 +171,7 @@ cmd_confirm_before_print(struct cmd *self, char *buf, size_t len) if (data == NULL) return (off); if (off < len && data->cmd != NULL) - off += xsnprintf(buf + off, len - off, "%s", data->cmd); + off += cmd_prarg(buf + off, len - off, " ", data->cmd); return (off); } |