jobs_eta alloc padding
authorJens Axboe <axboe@fb.com>
Tue, 27 Oct 2015 07:47:35 +0000 (16:47 +0900)
committerJens Axboe <axboe@fb.com>
Tue, 27 Oct 2015 07:47:35 +0000 (16:47 +0900)
Signed-off-by: Jens Axboe <axboe@fb.com>
eta.c

diff --git a/eta.c b/eta.c
index ba06654..7eb1c27 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -590,7 +590,7 @@ struct jobs_eta *get_jobs_eta(int force, size_t *size)
        if (!thread_number)
                return NULL;
 
-       *size = sizeof(*je) + THREAD_RUNSTR_SZ + 1;
+       *size = sizeof(*je) + THREAD_RUNSTR_SZ + 8;
        je = malloc(*size);
        if (!je)
                return NULL;