aboutsummaryrefslogtreecommitdiffstats
path: root/src/sat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sat.c')
-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)) {