apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r329135 - /apr/apr-util/trunk/memcache/apr_memcache.c
Date Fri, 28 Oct 2005 07:03:57 GMT
Author: pquerna
Date: Fri Oct 28 00:03:54 2005
New Revision: 329135

URL: http://svn.apache.org/viewcvs?rev=329135&view=rev
Log:
Replace sprintf with apr_snprintf as noticed by Joe Orton. 

Modified:
    apr/apr-util/trunk/memcache/apr_memcache.c

Modified: apr/apr-util/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/memcache/apr_memcache.c?rev=329135&r1=329134&r2=329135&view=diff
==============================================================================
--- apr/apr-util/trunk/memcache/apr_memcache.c (original)
+++ apr/apr-util/trunk/memcache/apr_memcache.c Fri Oct 28 00:03:54 2005
@@ -518,7 +518,7 @@
     vec[1].iov_base = (void*)key;
     vec[1].iov_len  = key_size;
 
-    klen = snprintf(conn->buffer, BUFFER_SIZE, " %u %u %u" MC_EOL, flags, timeout, data_size);
+    klen = apr_snprintf(conn->buffer, BUFFER_SIZE, " %u %u %u" MC_EOL, flags, timeout,
data_size);
 
     vec[2].iov_base = conn->buffer;
     vec[2].iov_len  = klen;
@@ -771,7 +771,7 @@
     vec[1].iov_base = (void*)key;
     vec[1].iov_len  = klen;
 
-    klen = snprintf(conn->buffer, BUFFER_SIZE, " %u" MC_EOL, timeout);
+    klen = apr_snprintf(conn->buffer, BUFFER_SIZE, " %u" MC_EOL, timeout);
 
     vec[2].iov_base = conn->buffer;
     vec[2].iov_len  = klen;
@@ -840,7 +840,7 @@
     vec[1].iov_base = (void*)key;
     vec[1].iov_len  = klen;
 
-    klen = snprintf(conn->buffer, BUFFER_SIZE, " %u" MC_EOL, inc);
+    klen = apr_snprintf(conn->buffer, BUFFER_SIZE, " %u" MC_EOL, inc);
 
     vec[2].iov_base = conn->buffer;
     vec[2].iov_len  = klen;



Mime
View raw message