aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-26 12:59:43 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-26 12:59:43 +0100
commitb3b16c60a98c5a10792bf399234bf3858c8b1561 (patch)
treec90b7016a0878173d9c8ef2ef1e4e43cc18ee090
parentsend job (diff)
downloadsat-b3b16c60a98c5a10792bf399234bf3858c8b1561.tar.gz
sat-b3b16c60a98c5a10792bf399234bf3858c8b1561.tar.bz2
sat-b3b16c60a98c5a10792bf399234bf3858c8b1561.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r--src/sat.c4
1 files 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)) {