projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
init: don't set did_arg just for an engine option
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 490f0fc2101bc912e6f27ab55b93640471031430..60e79474d2cba91b465c4aca3c34749096c2fbce 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-711,8
+711,8
@@
static unsigned long long get_fs_free_counts(struct thread_data *td)
if (fm)
continue;
- fm =
malloc(
sizeof(*fm));
- str
cpy(fm->__base, buf
);
+ fm =
calloc(1,
sizeof(*fm));
+ str
ncpy(fm->__base, buf, sizeof(fm->__base) - 1
);
fm->base = basename(fm->__base);
fm->key = sb.st_dev;
flist_add(&fm->list, &list);