projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Fix a bunch of bugs
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index e43a336108f0f78c18dcc28d5baf6cd1859b576c..4ba8f193967e8ce51d8134ba7e5b42bc908de1a9 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-239,7
+239,8
@@
void init_disk_util(struct thread_data *td)
log_err("unknown sysfs layout\n");
return;
}
- sprintf(foo, "%s", p);
+ strcpy(tmp, p);
+ sprintf(foo, "%s", tmp);
}
td->sysfs_root = strdup(foo);