From: Jeff Trawick Date: Sat, 5 Oct 2013 13:14:36 +0000 (+0000) Subject: ap_rputs() silently truncated size_t to int, resulting in 130+ warnings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b5cb6a89440ef1a9e8b49bceb67393abbb06fcb;p=thirdparty%2Fapache%2Fhttpd.git ap_rputs() silently truncated size_t to int, resulting in 130+ warnings when building httpd and a rich set of modules on Windows. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1529449 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_protocol.h b/include/http_protocol.h index 57fc9c0f66a..93824bf238a 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -411,7 +411,7 @@ AP_DECLARE(int) ap_rwrite(const void *buf, int nbyte, request_rec *r); */ static APR_INLINE int ap_rputs(const char *str, request_rec *r) { - return ap_rwrite(str, strlen(str), r); + return ap_rwrite(str, (int)strlen(str), r); } /**