From a927ddd7661270920b29e21117d46d1b80f0b16b Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Mon, 8 Sep 2008 19:50:40 +0000 Subject: [PATCH] * 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 --- modules/http/http_filters.c | 2 +- modules/http/http_protocol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index 7f6f9a5c9f..5e3dd116f0 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 37ac0e0c02..1caaaa91b2 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; } -- 2.50.1