diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2012-11-14 21:41:19 +0000 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2012-11-14 21:41:19 +0000 |
commit | 6a25b57e0dd84d31c22c8dd4c3b508c9ff19a889 (patch) | |
tree | cce29073d45bb37f4cd0e32731bfdf17f0f4a067 /include/util_filter.h | |
parent | d8ba1cbcfa4b0998d52e8fb2b423ef463c857bf7 (diff) | |
download | httpd-6a25b57e0dd84d31c22c8dd4c3b508c9ff19a889.tar.gz |
Give the opportunity to the compiler to compute at compile time the strlen of the given
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
Diffstat (limited to 'include/util_filter.h')
-rw-r--r-- | include/util_filter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/util_filter.h b/include/util_filter.h index ebe8de4637..5f6f9afab6 100644 --- a/include/util_filter.h +++ b/include/util_filter.h @@ -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. |