trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r1152346 - /trafficserver/traffic/trunk/proxy/CacheControl.cc
Date Fri, 29 Jul 2011 19:34:31 GMT
Author: bcall
Date: Fri Jul 29 19:34:30 2011
New Revision: 1152346

URL: http://svn.apache.org/viewvc?rev=1152346&view=rev
Log:
changed sprintf to snprintf

Modified:
    trafficserver/traffic/trunk/proxy/CacheControl.cc

Modified: trafficserver/traffic/trunk/proxy/CacheControl.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/CacheControl.cc?rev=1152346&r1=1152345&r2=1152346&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/CacheControl.cc (original)
+++ trafficserver/traffic/trunk/proxy/CacheControl.cc Fri Jul 29 19:34:30 2011
@@ -481,7 +481,7 @@ CacheControlRecord::UpdateMatch(CacheCon
   if (match == true) {
     char crtc_debug[80];
     if (result->cache_responses_to_cookies >= 0)
-      sprintf(crtc_debug, " [" TWEAK_CACHE_RESPONSES_TO_COOKIES "=%d]",
+      snprintf(crtc_debug, sizeof(crtc_debug), " [" TWEAK_CACHE_RESPONSES_TO_COOKIES "=%d]",
         result->cache_responses_to_cookies
       );
     else



Mime
View raw message