From 24878f1675bd3727a0a6d1a051b6b329f1ec2996 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 17 Jun 2000 12:33:30 +0000 Subject: [PATCH] Fix warnings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85597 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_core.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 17b1ce6fb1..56000374d4 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -1412,7 +1412,7 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg) return unclosed_directive(cmd); } - *endp = '\0'; + arg=ap_pstrndup(cmd->pool, arg, endp-arg); cmd->path = ap_getword_conf(cmd->pool, &arg); cmd->override = OR_ALL|ACCESS_CONF; @@ -1474,7 +1474,7 @@ static const char *urlsection(cmd_parms *cmd, void *mconfig, const char *arg) return unclosed_directive(cmd); } - *endp = '\0'; + arg=ap_pstrndup(cmd->pool, arg, endp-arg); cmd->path = ap_getword_conf(cmd->pool, &arg); cmd->override = OR_ALL|ACCESS_CONF; @@ -1534,7 +1534,7 @@ static const char *filesection(cmd_parms *cmd, void *mconfig, const char *arg) return unclosed_directive(cmd); } - *endp = '\0'; + arg=ap_pstrndup(cmd->pool, arg, endp-arg); cmd->path = ap_getword_conf(cmd->pool, &arg); /* Only if not an .htaccess file */ @@ -1589,7 +1589,7 @@ static const char *start_ifmod(cmd_parms *cmd, void *mconfig, const char *arg) return unclosed_directive(cmd); } - *endp = '\0'; + arg=ap_pstrndup(cmd->pool, arg, endp-arg); if (not) { arg++; @@ -1638,7 +1638,7 @@ static const char *start_ifdefine(cmd_parms *cmd, void *dummy, const char *arg) return unclosed_directive(cmd); } - *endp = '\0'; + arg=ap_pstrndup(cmd->pool, arg, endp-arg); if (arg[0] == '!') { not = 1; @@ -1681,7 +1681,7 @@ static const char *virtualhost_section(cmd_parms *cmd, void *dummy, return unclosed_directive(cmd); } - *endp = '\0'; + arg=ap_pstrndup(cmd->pool, arg, endp-arg); /* FIXME: There's another feature waiting to happen here -- since you can now put multiple addresses/names on a single -- 2.40.0