From: Christophe Jaillet Date: Wed, 14 Nov 2012 21:41:19 +0000 (+0000) Subject: Give the opportunity to the compiler to compute at compile time the strlen of the... X-Git-Tag: 2.5.0-alpha~6118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a25b57e0dd84d31c22c8dd4c3b508c9ff19a889;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/include/util_filter.h b/include/util_filter.h index ebe8de46377..5f6f9afab62 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.