From: Bradley Nicholes Date: Fri, 16 Jul 2004 16:12:22 +0000 (+0000) Subject: Replace the strsep() call to the more portable apr_strtok() call so that we can build... X-Git-Tag: pre_ajp_proxy~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c54c2e126ee54001fe3578b7f5d0ea3bac3149d1;p=apache Replace the strsep() call to the more portable apr_strtok() call so that we can build again git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104305 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 074e3e5bcf..78eed887e4 100644 --- a/server/core.c +++ b/server/core.c @@ -1232,19 +1232,17 @@ static const char *set_allow_opts(cmd_parms *cmd, allow_options_t *opts, allow_options_t opt; int first = 1; - char *p = (char *) l; + char *w, *p = (char *) l; + char *tok_state; - while (p && *p) { - char *w = strsep(&p, ","); + while (w = apr_strtok(p, ",", &tok_state)) { if (first) { + p = NULL; *opts = OPT_NONE; first = 0; } - if (!w) - continue; - if (!strcasecmp(w, "Indexes")) { opt = OPT_INDEXES; }