From fa7adc57d61f45b394529563408d94ce20c6ac09 Mon Sep 17 00:00:00 2001 From: David McCreedy Date: Thu, 31 May 2007 04:26:54 +0000 Subject: [PATCH] Properly null-terminate the tpf_server_name string (in TPF-only code). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@543050 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/http_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/http_main.c b/src/main/http_main.c index 961c5a828eb..f063f76e91c 100644 --- a/src/main/http_main.c +++ b/src/main/http_main.c @@ -5687,7 +5687,7 @@ int REALMAIN(int argc, char *argv[]) if (!tpf_child) { memcpy(tpf_server_name, input_parms.parent.servname, INETD_SERVNAME_LENGTH); - tpf_server_name[INETD_SERVNAME_LENGTH + 1] = '\0'; + tpf_server_name[INETD_SERVNAME_LENGTH] = '\0'; sprintf(tpf_mutex_key, "%.*x", (int) TPF_MUTEX_KEY_SIZE - 1, getpid()); tpf_parent_pid = getppid(); ap_open_logs(server_conf, plog); -- 2.47.2