From 8f9e677eba20dad7c6524d16c3a852a34237c218 Mon Sep 17 00:00:00 2001 From: SashaXser <24498484+SashaXser@users.noreply.github.com> Date: Sun, 10 Sep 2023 14:46:14 +0400 Subject: [PATCH] Update goodbyedpi.c --- src/goodbyedpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index 095208e..d6cbb5b 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -869,7 +869,7 @@ int main(int argc, char *argv[]) { char *autottl_copy = strdup(optarg); if (strchr(autottl_copy, '-')) { // token "-" found, start X-Y parser - char *autottl_current = strtok_r(autottl_copy, "-", &saveptr); + char *autottl_current = strtok(autottl_copy, "-"); auto_ttl_1 = atoub(autottl_current, "Set Auto TTL parameter error!"); autottl_current = strtok(NULL, "-"); if (!autottl_current) {