From: Ruediger Pluem Date: Mon, 8 Sep 2008 19:50:40 +0000 (+0000) Subject: * Fix compiler warning (missing sentinel in function call). X-Git-Tag: 2.3.0~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a927ddd7661270920b29e21117d46d1b80f0b16b;p=thirdparty%2Fapache%2Fhttpd.git * Fix compiler warning (missing sentinel in function call). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@693224 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index 7f6f9a5c9f0..5e3dd116f05 100644 --- a/modules/http/http_filters.c +++ b/modules/http/http_filters.c @@ -815,7 +815,7 @@ static void validate_status_line(request_rec *r) * RFC2616 mandates a trailing space, let's add it. */ else if (len == 3) { - r->status_line = apr_pstrcat(r->pool, r->status_line, " "); + r->status_line = apr_pstrcat(r->pool, r->status_line, " ", NULL); } } } diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 37ac0e0c027..1caaaa91b24 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1248,9 +1248,9 @@ AP_DECLARE(void) ap_send_error_response(request_rec *r, int recursive_error) * If we have an empty reason phrase, we also add "Unknown Reason". */ if (len == 3) { - r->status_line = apr_pstrcat(r->pool, r->status_line, " Unknown Reason"); + r->status_line = apr_pstrcat(r->pool, r->status_line, " Unknown Reason", NULL); } else if (len == 4) { - r->status_line = apr_pstrcat(r->pool, r->status_line, "Unknown Reason"); + r->status_line = apr_pstrcat(r->pool, r->status_line, "Unknown Reason", NULL); } title = r->status_line; }