summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c
index cf2dd0fbe..c4593fee3 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -433,7 +433,7 @@ print_stat (char *pformat, char m, char const *filename, void const *data)
strcat (pformat, "s");
if (S_ISLNK (statbuf->st_mode))
{
- char *linkname = xreadlink (filename);
+ char *linkname = xreadlink (filename, statbuf->st_size);
if (linkname == NULL)
{
error (0, errno, _("cannot read symbolic link %s"),