diff options
-rw-r--r-- | util/symlinks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/symlinks.c b/util/symlinks.c index abb33f8b..3acebe7a 100644 --- a/util/symlinks.c +++ b/util/symlinks.c @@ -166,7 +166,7 @@ static void fix_symlink (char *path, dev_t my_dev) struct stat stbuf, lstbuf; int c, fix_abs = 0, fix_messy = 0, fix_long = 0; - if ((c = readlink(path, lpath, sizeof(lpath))) == -1) { + if ((c = readlink(path, lpath, sizeof(lpath) - 1)) == -1) { perror(path); return; } |