]> granicus.if.org Git - apache/commitdiff
* Fix compiler warning (missing sentinel in function call).
authorRuediger Pluem <rpluem@apache.org>
Mon, 8 Sep 2008 19:50:40 +0000 (19:50 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 8 Sep 2008 19:50:40 +0000 (19:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@693224 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c
modules/http/http_protocol.c

index 7f6f9a5c9f0d51ff19d4264e6f4b1a443382c93d..5e3dd116f05a9e46624deded29593f1b5508dde9 100644 (file)
@@ -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);
         }
     }
 }
index 37ac0e0c02769e59caf6d23fe1447575cba3940d..1caaaa91b2432a453d2b2d2b0d17579df8a16a4e 100644 (file)
@@ -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;
             }