httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mccre...@apache.org
Subject svn commit: r543050 - /httpd/httpd/branches/1.3.x/src/main/http_main.c
Date Thu, 31 May 2007 04:26:55 GMT
Author: mccreedy
Date: Wed May 30 21:26:54 2007
New Revision: 543050

URL: http://svn.apache.org/viewvc?view=rev&rev=543050
Log:
Properly null-terminate the tpf_server_name string (in TPF-only code).

Modified:
    httpd/httpd/branches/1.3.x/src/main/http_main.c

Modified: httpd/httpd/branches/1.3.x/src/main/http_main.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/1.3.x/src/main/http_main.c?view=diff&rev=543050&r1=543049&r2=543050
==============================================================================
--- httpd/httpd/branches/1.3.x/src/main/http_main.c (original)
+++ httpd/httpd/branches/1.3.x/src/main/http_main.c Wed May 30 21:26:54 2007
@@ -5687,7 +5687,7 @@
     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);



Mime
View raw message