From b3b16c60a98c5a10792bf399234bf3858c8b1561 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 26 Dec 2015 12:59:43 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/sat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sat.c b/src/sat.c index 8cb87cf..f84d44b 100644 --- a/src/sat.c +++ b/src/sat.c @@ -109,8 +109,8 @@ main(int argc, char *argv[], char *envp[]) if (!(msg = malloc(n + sizeof(clk) + sizeof(ts)))) goto fail; store_array(store_array(msg, argv), envp); - memcpy(msg + n, clk, sizeof(clk)); - memcpy(msg + n + sizeof(clk), ts, sizeof(ts)); + memcpy(msg + n, clk, sizeof(clk)), n += sizeof(clk); + memcpy(msg + n, ts, sizeof(ts)), n += sizeof(ts); /* Send job to daemon, start daemon if necessary. */ if (send_command(SAT_QUEUE, n, msg)) { -- cgit v1.2.3-70-g09d2