]> granicus.if.org Git - apache/commitdiff
apr_pstrcat args were not NULL terminated
authorDoug MacEachern <dougm@apache.org>
Sun, 26 Aug 2001 17:38:14 +0000 (17:38 +0000)
committerDoug MacEachern <dougm@apache.org>
Sun, 26 Aug 2001 17:38:14 +0000 (17:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90698 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 9b3d25bde46cdf050e6c4f5d97d7baf3430cf1cb..ed918c4a112e90b6e8c69169e6db0ee47900ed73 100644 (file)
@@ -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) 
         {