diff options
author | Volker Lendecke <vl@samba.org> | 2008-01-23 11:04:10 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-01-23 15:08:04 +0100 |
commit | fd34ce437057bb34cdc37f4b066e424000d36789 (patch) | |
tree | e3fe6a29bfed90c756804be22a88243d9ca9a3aa /source/nmbd | |
parent | da131d089db98017632103aa9bbe38c98f7a3fc1 (diff) | |
download | samba-fd34ce437057bb34cdc37f4b066e424000d36789.tar.gz samba-fd34ce437057bb34cdc37f4b066e424000d36789.tar.xz samba-fd34ce437057bb34cdc37f4b066e424000d36789.zip |
strtok -> strtok_r
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd_processlogon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c index 0ff0afd12d7..10833e80890 100644 --- a/source/nmbd/nmbd_processlogon.c +++ b/source/nmbd/nmbd_processlogon.c @@ -399,6 +399,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", char *component, *dc, *q1; char *q_orig = q; int str_offset; + char *saveptr; domain = get_mydnsdomname(talloc_tos()); if (!domain) { @@ -444,7 +445,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", str_offset = q - q_orig; dc = domain; q1 = q; - while ((component = strtok(dc, "."))) { + while ((component = strtok_r(dc, ".", &saveptr)) != NULL) { dc = NULL; if (sizeof(outbuf) - PTR_DIFF(q, outbuf) < 1) { return; |