]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Give the opportunity to the compiler to compute at compile time the strlen of the...
authorChristophe Jaillet <jailletc36@apache.org>
Wed, 14 Nov 2012 21:41:19 +0000 (21:41 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Wed, 14 Nov 2012 21:41:19 +0000 (21:41 +0000)
string. Most of the calls to ap_fputs are done with constant strings.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1409437 13f79535-47bb-0310-9956-ffa450edef68

include/util_filter.h

index ebe8de463779e5a819182c842b953a72a55707d3..5f6f9afab6210338210b72542813c1a0ea35bec1 100644 (file)
@@ -548,7 +548,7 @@ AP_DECLARE(apr_status_t) ap_fflush(ap_filter_t *f, apr_bucket_brigade *bb);
  * @param str The string to write
  */
 #define ap_fputs(f, bb, str) \
-        apr_brigade_puts(bb, ap_filter_flush, f, str)
+        apr_brigade_write(bb, ap_filter_flush, f, str, strlen(str))
 
 /**
  * Write a character for the current filter, buffering if possible.