projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a85161
)
make_filename: another off-by-one buffer issue
author
Jens Axboe
<axboe@fb.com>
Mon, 14 Apr 2014 16:13:46 +0000
(10:13 -0600)
committer
Jens Axboe
<axboe@fb.com>
Mon, 14 Apr 2014 16:13:46 +0000
(10:13 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 75b997ef54438615b1976b208c1c789eaef99f1c..21779c7b162fda0dadeb9f2238d7a334f7c7f3db 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-942,7
+942,7
@@
static char *make_filename(char *buf, struct thread_options *o,
{
struct fpre_keyword *f;
char copy[PATH_MAX];
- size_t dst_left = PATH_MAX;
+ size_t dst_left = PATH_MAX
- 1
;
if (!o->filename_format || !strlen(o->filename_format)) {
sprintf(buf, "%s.%d.%d", jobname, jobnum, filenum);