You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2007/06/04 15:08:14 UTC

svn commit: r544148 - /httpd/httpd/branches/1.3.x/src/main/http_main.c

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);
 }