aboutsummaryrefslogtreecommitdiff
path: root/seatd/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'seatd/seat.c')
-rw-r--r--seatd/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/seatd/seat.c b/seatd/seat.c
index eb17e7b..77e2990 100644
--- a/seatd/seat.c
+++ b/seatd/seat.c
@@ -135,7 +135,7 @@ struct seat_device *seat_open_device(struct client *client, const char *path) {
return NULL;
}
- char sanitized_path[MAX_PATH_LEN];
+ char sanitized_path[PATH_MAX];
if (realpath(path, sanitized_path) == NULL) {
log_errorf("invalid path '%s': %s", path, strerror(errno));
return NULL;