From 85860e4e7ca18a246b7a862e3aa37bf3122f8baa Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Fri, 31 Jul 2020 15:58:19 +0200 Subject: seat: Use PATH_MAX long array for realpath --- seatd/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'seatd') 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; -- cgit v1.2.3