]> granicus.if.org Git - sudo/commitdiff
buf is now of size MAXPATHLEN+1 since it never holds command args
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Sep 1995 04:55:34 +0000 (04:55 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Sep 1995 04:55:34 +0000 (04:55 +0000)
parse.c

diff --git a/parse.c b/parse.c
index 756c9acba04fec2bf29769aad51e1e34fc7c930f..37ebdbb7276f53dba9c273b24cddd7a37b236e86 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -164,7 +164,7 @@ int path_matches(cmnd, path)
     struct stat pst;
     DIR *dirp;
     struct dirent *dent;
-    char buf[MAXCOMMANDLENGTH+1];
+    char buf[MAXPATHLEN+1];
     static char *c;
     char *args;