commit | b400a20e5d688f3498b2e3e9ce5567d3496dd746 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Mon Apr 14 10:13:46 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Mon Apr 14 10:13:46 2014 -0600 |
tree | 67e764e8607ea1f3e10b39dd7b3bca31584bd569 | |
parent | 4a851614cfdbebddeb78de04ac89a39d26f25459 [diff] [blame] |
make_filename: another off-by-one buffer issue Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/init.c b/init.c index 75b997e..21779c7 100644 --- a/init.c +++ b/init.c
@@ -942,7 +942,7 @@ { 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);