2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

use sizeof instead of a constant in 1 place

This commit is contained in:
Todd C. Miller
1994-08-30 22:30:17 +00:00
parent b7df10fe28
commit 6174554533

2
sudo.c
View File

@@ -275,7 +275,7 @@ static void load_globals()
/*
* 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]);
exit(1);
}