X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=diskutil.c;h=cbde42e908f71629cd9575e783fb4d390554f369;hb=d19cedd63494cf8aef6443fb2ce866cd7a977b98;hp=9aa1fa15acab9ed27d0925e2926816bd8478d90e;hpb=c3afb7639f41e58e44481151e3aa4caa6be789f6;p=fio.git diff --git a/diskutil.c b/diskutil.c index 9aa1fa15..cbde42e9 100644 --- a/diskutil.c +++ b/diskutil.c @@ -236,7 +236,7 @@ static void find_add_disk_slaves(struct thread_data *td, char *path, * are links to the real directories for the slave * devices? */ - linklen = readlink(temppath, slavepath, PATH_MAX - 0); + linklen = readlink(temppath, slavepath, PATH_MAX - 1); if (linklen < 0) { perror("readlink() for slave device."); return;