projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eta: ensure we include terminating 0 space in je->run_str[]
[fio.git]
/
eta.c
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;
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;
je = malloc(*size);
if (!je)
return NULL;