trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1236540 - /trafficserver/traffic/trunk/lib/records/RecHttp.cc
Date Fri, 27 Jan 2012 06:17:27 GMT
Author: amc
Date: Fri Jan 27 06:17:27 2012
New Revision: 1236540

URL: http://svn.apache.org/viewvc?rev=1236540&view=rev
Log:
TS-1077 Solaris fix.

Modified:
    trafficserver/traffic/trunk/lib/records/RecHttp.cc

Modified: trafficserver/traffic/trunk/lib/records/RecHttp.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/lib/records/RecHttp.cc?rev=1236540&r1=1236539&r2=1236540&view=diff
==============================================================================
--- trafficserver/traffic/trunk/lib/records/RecHttp.cc (original)
+++ trafficserver/traffic/trunk/lib/records/RecHttp.cc Fri Jan 27 06:17:27 2012
@@ -122,7 +122,7 @@ HttpProxyPort::loadConfig(Vec<self>& ent
   if (-1 == sp) {
     // Default value, ignore.
   } else if (0 < sp && sp < 65536) {
-    char buff[6 + 1 + strlen(attr) + 1];
+    char* buff = static_cast<char*>(alloca(6 + 1 + strlen(attr) + 1));
     sprintf(buff, "%d:%s", sp, attr);
     self::loadValue(entries, buff);
   } else {



Mime
View raw message