httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r544148 - /httpd/httpd/branches/1.3.x/src/main/http_main.c
Date Mon, 04 Jun 2007 13:08:14 GMT
Author: jim
Date: Mon Jun  4 06:08:13 2007
New Revision: 544148

URL: http://svn.apache.org/viewvc?view=rev&rev=544148
Log:
Use ap_snprintf() 

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=544148&r1=544147&r2=544148
==============================================================================
--- httpd/httpd/branches/1.3.x/src/main/http_main.c (original)
+++ httpd/httpd/branches/1.3.x/src/main/http_main.c Mon Jun  4 06:08:13 2007
@@ -386,7 +386,7 @@
 static int in_pid_table(int pid) {
     char apid[64];      /* WAY generous! */
     const char *spid;
-    snprintf(apid, sizeof(apid), "%d", pid);
+    ap_snprintf(apid, sizeof(apid), "%d", pid);
     spid = ap_table_get(pid_table, apid);
     if (spid && spid[0] == '1' && spid[1] == '\0')
         return 1;
@@ -396,13 +396,13 @@
 
 static void set_pid_table(int pid) {
     char apid[64];
-    snprintf(apid, sizeof(apid), "%d", pid);
+    ap_snprintf(apid, sizeof(apid), "%d", pid);
     ap_table_set(pid_table, apid, "1");
 }
 
 static void unset_pid_table(int pid) {
     char apid[64];
-    snprintf(apid, sizeof(apid), "%d", pid);
+    ap_snprintf(apid, sizeof(apid), "%d", pid);
     ap_table_unset(pid_table, apid);
 }
 



Mime
View raw message