aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/symlinks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/symlinks.c b/util/symlinks.c
index 10b3a374..600effac 100644
--- a/util/symlinks.c
+++ b/util/symlinks.c
@@ -170,7 +170,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;
}