From: Doug MacEachern Date: Sun, 26 Aug 2001 17:38:14 +0000 (+0000) Subject: apr_pstrcat args were not NULL terminated X-Git-Tag: 2.0.25~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68e779726431b2b1bcfc5afc8f85de1f87de3f5a;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/core.c b/server/core.c index 9b3d25bde46..ed918c4a112 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) {