]> granicus.if.org Git - sudo/commitdiff
use sizeof instead of a constant in 1 place
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Aug 1994 22:30:17 +0000 (22:30 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Aug 1994 22:30:17 +0000 (22:30 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index 0c3ab257e343b394b2ddbcff2a89dccd25da9d81..b9e3c10079dd4177bc8992fe2b4946a0787a2388 100644 (file)
--- 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);
     }