From 68e779726431b2b1bcfc5afc8f85de1f87de3f5a Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 26 Aug 2001 17:38:14 +0000 Subject: [PATCH] apr_pstrcat args were not NULL terminated git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90698 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core.c b/server/core.c index 9b3d25bde4..ed918c4a11 100644 --- a/server/core.c +++ b/server/core.c @@ -1527,7 +1527,7 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg) r = ap_pregcomp(cmd->pool, cmd->path, REG_EXTENDED|USE_ICASE); } else if (cmd->path[strlen(cmd->path) - 1] != '/') { - cmd->path = apr_pstrcat(cmd->pool, cmd->path, "/"); + cmd->path = apr_pstrcat(cmd->pool, cmd->path, "/", NULL); if (!strcmp(cmd->path, "/") == 0) { -- 2.40.0