summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-04-05 23:49:32 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-04-05 23:49:32 +0000
commitc61d899bb4162ed06a06810fb4be1fb9d19103e8 (patch)
tree7ec261f4fc68ae1ab1c08ddcf01f53460d0ef060
parentcc38c8ab6fa26b6716edd744d93d00ff3a4620d5 (diff)
trivial sprintf
-rw-r--r--usr.sbin/httpd/src/support/suexec.c2
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++;