diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-26 12:59:43 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-26 12:59:43 +0100 |
commit | b3b16c60a98c5a10792bf399234bf3858c8b1561 (patch) | |
tree | c90b7016a0878173d9c8ef2ef1e4e43cc18ee090 | |
parent | send job (diff) | |
download | sat-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |