summaryrefslogtreecommitdiffstats
path: root/source/web
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-23 11:04:10 +0100
committerVolker Lendecke <vl@samba.org>2008-01-23 15:08:04 +0100
commitfd34ce437057bb34cdc37f4b066e424000d36789 (patch)
treee3fe6a29bfed90c756804be22a88243d9ca9a3aa /source/web
parentda131d089db98017632103aa9bbe38c98f7a3fc1 (diff)
downloadsamba-fd34ce437057bb34cdc37f4b066e424000d36789.tar.gz
samba-fd34ce437057bb34cdc37f4b066e424000d36789.tar.xz
samba-fd34ce437057bb34cdc37f4b066e424000d36789.zip
strtok -> strtok_r
Diffstat (limited to 'source/web')
-rw-r--r--source/web/cgi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c
index 07a6fbcf544..c6233b08694 100644
--- a/source/web/cgi.c
+++ b/source/web/cgi.c
@@ -164,7 +164,9 @@ void cgi_load_variables(void)
open("/dev/null", O_RDWR);
if ((s=query_string) || (s=getenv("QUERY_STRING"))) {
- for (tok=strtok(s,"&;");tok;tok=strtok(NULL,"&;")) {
+ char *saveptr;
+ for (tok=strtok_r(s, "&;", &saveptr); tok;
+ tok=strtok_r(NULL, "&;", &saveptr)) {
p = strchr_m(tok,'=');
if (!p) continue;