trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject svn commit: r1056609 - /trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc
Date Sat, 08 Jan 2011 03:19:42 GMT
Author: jesus
Date: Sat Jan  8 03:19:33 2011
New Revision: 1056609

URL: http://svn.apache.org/viewvc?rev=1056609&view=rev
Log:
I need to learn to copy and paste better.  invalid cast

Modified:
    trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc

Modified: trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc?rev=1056609&r1=1056608&r2=1056609&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc (original)
+++ trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc Sat Jan  8 03:19:33 2011
@@ -957,7 +957,7 @@ HttpTransactHeaders::insert_warning_head
   else
     warn_text_len = 0; // Make sure it's really zero
 
-  char *warning_text = alloca(bufsize);
+  char *warning_text = (char *)alloca(bufsize);
 
   len = snprintf(warning_text, bufsize, "%3d %s %.*s", code, http_config_param->proxy_response_via_string,
warn_text_len, warn_text);
   header->value_set(MIME_FIELD_WARNING, MIME_LEN_WARNING, warning_text, len);



Mime
View raw message