seat: Use PATH_MAX long array for realpath
This commit is contained in:
parent
9d08511da4
commit
85860e4e7c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue