aboutsummaryrefslogtreecommitdiff
path: root/src/tool_dirhie.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-09-07 10:43:40 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-09-07 10:43:40 +0200
commitb96509096336474f0e26b80792b021472ae33fcd (patch)
tree1e2344f6db9819101855a7dcd3c3b41cb84a2a06 /src/tool_dirhie.c
parent5871dfcc16e07be462a3e090994abc6f82b65f01 (diff)
curl: whitelist use of strtok() in non-threaded context
Diffstat (limited to 'src/tool_dirhie.c')
-rw-r--r--src/tool_dirhie.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool_dirhie.c b/src/tool_dirhie.c
index b65db4110..db810d647 100644
--- a/src/tool_dirhie.c
+++ b/src/tool_dirhie.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -112,6 +112,8 @@ CURLcode create_dir_hierarchy(const char *outfile, FILE *errors)
}
dirbuildup[0] = '\0';
+ /* Allow strtok() here since this isn't used threaded */
+ /* !checksrc! disable BANNEDFUNC 2 */
tempdir = strtok(outdup, DIR_CHAR);
while(tempdir != NULL) {