diff options
author | nicm <nicm> | 2015-11-27 15:06:43 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-11-27 15:06:43 +0000 |
commit | 6a2ca34216530c687027cf9e767d2b46c85976e6 (patch) | |
tree | 9f0cb8f7f41ea4e93102bc764f7388ae6b5b0d5c /cmd-queue.c | |
parent | ac8678aefe157d7e40c5bcedd12333eaedf0df92 (diff) | |
download | rtmux-6a2ca34216530c687027cf9e767d2b46c85976e6.tar.gz rtmux-6a2ca34216530c687027cf9e767d2b46c85976e6.tar.bz2 rtmux-6a2ca34216530c687027cf9e767d2b46c85976e6.zip |
Do not set a limit on the length of commands when printing them.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r-- | cmd-queue.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-queue.c b/cmd-queue.c index 2d896212..c85fb048 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -184,11 +184,12 @@ cmdq_continue_one(struct cmd_q *cmdq) { struct cmd *cmd = cmdq->cmd; enum cmd_retval retval; - char tmp[1024]; + char *s; int flags = !!(cmd->flags & CMD_CONTROL); - cmd_print(cmd, tmp, sizeof tmp); - log_debug("cmdq %p: %s", cmdq, tmp); + s = cmd_print(cmd); + log_debug("cmdq %p: %s", cmdq, s); + free(s); cmdq->time = time(NULL); cmdq->number++; |