projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92060d6
)
eta: ensure we include terminating 0 space in je->run_str[]
author
Jens Axboe
<axboe@fb.com>
Fri, 14 Aug 2015 15:42:55 +0000
(09:42 -0600)
committer
Jens Axboe
<axboe@fb.com>
Fri, 14 Aug 2015 15:42:55 +0000
(09:42 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
eta.c
patch
|
blob
|
blame
|
history
diff --git
a/eta.c
b/eta.c
index db045cb230338096c90d7ea2bb93fb13014f37cd..3e8eb0bbc0d1981fc0aa9dac768fddbb1a02b466 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;
+ *size = sizeof(*je) + THREAD_RUNSTR_SZ
+ 1
;
je = malloc(*size);
if (!je)
return NULL;