From: Todd C. Miller Date: Tue, 30 Aug 1994 22:30:17 +0000 (+0000) Subject: use sizeof instead of a constant in 1 place X-Git-Tag: SUDO_1_4_0~740 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6174554533a546e361139425c852733dad53864c;p=sudo use sizeof instead of a constant in 1 place --- diff --git a/sudo.c b/sudo.c index 0c3ab257e..b9e3c1007 100644 --- a/sudo.c +++ b/sudo.c @@ -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); }