summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/boom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boom.c b/src/boom.c
index 96176f9..14f3250 100644
--- a/src/boom.c
+++ b/src/boom.c
@@ -108,7 +108,7 @@ static int f(const char *fpath, const struct stat *, int typeflag, struct FTW *f
printf("%s", fname);
if (typeflag == FTW_SL) {
char real_name[PATH_MAX] = {0};
- readlink(fpath, real_name, PATH_MAX);
+ readlink(fpath, real_name, PATH_MAX-1);
printf(" -> %s", real_name);
}
printf("\n");