aboutsummaryrefslogtreecommitdiff
path: root/seatd
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-07-31 15:58:19 +0200
committerKenny Levinsen <kl@kl.wtf>2020-07-31 15:58:19 +0200
commit85860e4e7ca18a246b7a862e3aa37bf3122f8baa (patch)
tree78ec903a1dc90c9cbb4a360e77169df345fe584b /seatd
parent9d08511da4d9860a8b78ef38899499123401a80c (diff)
seat: Use PATH_MAX long array for realpath
Diffstat (limited to 'seatd')
-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;