summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sbus/sssd_dbus_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbus/sssd_dbus_server.c b/src/sbus/sssd_dbus_server.c
index 759eb69f..5366e807 100644
--- a/src/sbus/sssd_dbus_server.c
+++ b/src/sbus/sssd_dbus_server.c
@@ -132,7 +132,7 @@ remove_socket_symlink(const char *symlink_name)
ssize_t numread = 0;
errno = 0;
- numread = readlink(symlink_name, target, PATH_MAX);
+ numread = readlink(symlink_name, target, PATH_MAX-1);
if (numread < 0) {
ret = errno;
DEBUG(2, ("readlink failed [%d]: %s\n", ret, strerror(ret)));