Commit aafdc4c3 authored by Evan Hunt's avatar Evan Hunt

Merge branch 'fix-strtok' into 'v9_11'

parents 0edeb2cb 2960bf1a
Pipeline #2320 failed with stages
in 1 minute and 52 seconds
......@@ -501,7 +501,7 @@ parse_T_opt(char *option) {
} else if (!strncmp(option, "maxudp=", 7)) {
maxudp = atoi(option + 7);
} else if (!strncmp(option, "mkeytimers=", 11)) {
p = strtok_r(option + 11, "/", &last);
p = strtok(option + 11, "/", &last);
if (p == NULL) {
ns_main_earlyfatal("bad mkeytimer");
}
......@@ -511,7 +511,7 @@ parse_T_opt(char *option) {
ns_main_earlyfatal("bad mkeytimer");
}
p = strtok_r(NULL, "/", &last);
p = strtok(NULL, "/", &last);
if (p == NULL) {
dns_zone_mkey_day = (24 * dns_zone_mkey_hour);
dns_zone_mkey_month = (30 * dns_zone_mkey_day);
......@@ -522,7 +522,7 @@ parse_T_opt(char *option) {
if (dns_zone_mkey_day < dns_zone_mkey_hour)
ns_main_earlyfatal("bad mkeytimer");
p = strtok_r(NULL, "/", &last);
p = strtok(NULL, "/", &last);
if (p == NULL) {
dns_zone_mkey_month = (30 * dns_zone_mkey_day);
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment