diff --git a/src/volser/restorevol.c b/src/volser/restorevol.c index 1da076f592..653a6ace28 100644 --- a/src/volser/restorevol.c +++ b/src/volser/restorevol.c @@ -720,7 +720,7 @@ ReadVNode(afs_int32 count) */ snprintf(linkname, sizeof linkname, "%s" OS_DIRSEP "%s%d", parentdir, AFILE, vn.vnode); - len = readlink(linkname, fname, MAXNAMELEN); + len = readlink(linkname, fname, MAXNAMELEN - 1); if (len < 0) { snprintf(filename, sizeof filename, "%s" OS_DIRSEP "%s%d", rootdir, OFILE, vn.vnode);