diff options
| author | David Bright <dab@FreeBSD.org> | 2022-04-12 16:15:06 +0000 |
|---|---|---|
| committer | David Bright <dab@FreeBSD.org> | 2022-04-12 16:23:56 +0000 |
| commit | 0966fb1b74b38b31dc83e3cca48701ec796bf73a (patch) | |
| tree | 54cedbabe5a97814603329ba5d9369e27d5b885d /tests | |
| parent | bd1eafcdd02a6f559844aafe0dd0df34a356259d (diff) | |
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/sys/audit/inter-process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/audit/inter-process.c b/tests/sys/audit/inter-process.c index f29c23a4326b..6a9111712bf2 100644 --- a/tests/sys/audit/inter-process.c +++ b/tests/sys/audit/inter-process.c @@ -1454,7 +1454,7 @@ ATF_TC_HEAD(shm_unlink_success, tc) ATF_TC_BODY(shm_unlink_success, tc) { /* Build an absolute path to a file in the test-case directory */ - char dirpath[50]; + char dirpath[PATH_MAX]; ATF_REQUIRE(getcwd(dirpath, sizeof(dirpath)) != NULL); strlcat(dirpath, path, sizeof(dirpath)); ATF_REQUIRE(shm_open(dirpath, O_CREAT | O_TRUNC | O_RDWR, 0600) != -1); |
