From: Jens Axboe Date: Fri, 27 Jun 2014 21:15:23 +0000 (-0600) Subject: eta: only pass real size of jobs_eta X-Git-Tag: fio-2.1.11~45 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=05bff935cf3b8d5b3cba3958ec8ea9205bdc9f86 eta: only pass real size of jobs_eta We might send this over the wire, so need sending more than we actually used. Signed-off-by: Jens Axboe --- diff --git a/eta.c b/eta.c index 850a7847..0105cda6 100644 --- a/eta.c +++ b/eta.c @@ -581,6 +581,7 @@ struct jobs_eta *get_jobs_eta(int force, size_t *size) return NULL; } + *size = sizeof(*je) + strlen((char *) je->run_str) + 1; return je; }