summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-04-08 20:13:08 +0000
committerhenning <henning@openbsd.org>2003-04-08 20:13:08 +0000
commit1fcf5969e14506aa2061c24d6a6db54d4287f61f (patch)
tree77037dc3e0a135e5b11c587d783223602e58f943
parentmore correct snprintf bound. ok deraadt@ (diff)
downloadwireguard-openbsd-1fcf5969e14506aa2061c24d6a6db54d4287f61f.tar.xz
wireguard-openbsd-1fcf5969e14506aa2061c24d6a6db54d4287f61f.zip
easy sprintf in code we don't use
-rw-r--r--usr.sbin/httpd/src/main/http_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/src/main/http_main.c b/usr.sbin/httpd/src/main/http_main.c
index a7e552f7add..ea241945f9c 100644
--- a/usr.sbin/httpd/src/main/http_main.c
+++ b/usr.sbin/httpd/src/main/http_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: http_main.c,v 1.28 2003/02/16 17:16:12 cloder Exp $ */
+/* $OpenBSD: http_main.c,v 1.29 2003/04/08 20:13:08 henning Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
@@ -5643,7 +5643,7 @@ int REALMAIN(int argc, char *argv[])
memcpy(tpf_server_name, input_parms.parent.servname,
INETD_SERVNAME_LENGTH);
tpf_server_name[INETD_SERVNAME_LENGTH + 1] = '\0';
- sprintf(tpf_mutex_key, "%.*x", TPF_MUTEX_KEY_SIZE - 1, getpid());
+ snprintf(tpf_mutex_key, sizeof(tpf_mutex_key), "%.*x", TPF_MUTEX_KEY_SIZE - 1, getpid());
ap_open_logs(server_conf, plog);
ap_tpf_zinet_checks(ap_standalone, tpf_server_name, server_conf);
ap_tpf_save_argv(argc, argv); /* save argv parms for children */