Commit 2960bf1a authored by Evan Hunt's avatar Evan Hunt

use strtok() instead of strtok_r() in command line processing

(cherry picked from commit 1734f1b3)
parent 0edeb2cb
......@@ -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