You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2011/07/29 21:34:31 UTC

svn commit: r1152346 - /trafficserver/traffic/trunk/proxy/CacheControl.cc

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