mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 15:55:40 +00:00
use sizeof instead of a constant in 1 place
This commit is contained in:
2
sudo.c
2
sudo.c
@@ -275,7 +275,7 @@ static void load_globals()
|
|||||||
/*
|
/*
|
||||||
* so we know where we are... (do as user)
|
* so we know where we are... (do as user)
|
||||||
*/
|
*/
|
||||||
if (!getcwd(cwd, (size_t) (MAXPATHLEN + 1))) {
|
if (!getcwd(cwd, (size_t) sizeof(cwd))) {
|
||||||
(void) fprintf(stderr, "%s: Can't get working directory!\n", Argv[0]);
|
(void) fprintf(stderr, "%s: Can't get working directory!\n", Argv[0]);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user