diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-05 23:49:32 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-05 23:49:32 +0000 |
commit | c61d899bb4162ed06a06810fb4be1fb9d19103e8 (patch) | |
tree | 7ec261f4fc68ae1ab1c08ddcf01f53460d0ef060 | |
parent | cc38c8ab6fa26b6716edd744d93d00ff3a4620d5 (diff) |
trivial sprintf
-rw-r--r-- | usr.sbin/httpd/src/support/suexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/support/suexec.c b/usr.sbin/httpd/src/support/suexec.c index c28696d845c..b8a21048396 100644 --- a/usr.sbin/httpd/src/support/suexec.c +++ b/usr.sbin/httpd/src/support/suexec.c @@ -223,7 +223,7 @@ static void clean_env(void) exit(120); } - sprintf(pathbuf, "PATH=%s", SAFE_PATH); + snprintf(pathbuf, sizeof(pathbuf), "PATH=%s", SAFE_PATH); cleanenv[cidx] = strdup(pathbuf); cidx++; |