aboutsummaryrefslogtreecommitdiff
path: root/cmd-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c7
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++;