From 17f25d370deb0168f3edc7d52217ff7b13d3ee31 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 31 Jan 2017 12:43:59 -0500 Subject: [PATCH] fix strtok_r --- src/main/fc/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/fc/cli.c b/src/main/fc/cli.c index e37d011b0..f6536a9ee 100755 --- a/src/main/fc/cli.c +++ b/src/main/fc/cli.c @@ -2345,7 +2345,7 @@ static void cliServoMix(char *cmdline) } else { enum {RULE = 0, TARGET, INPUT, RATE, SPEED, MIN, MAX, BOX, ARGS_COUNT}; char *saveptr; - ptr = strtok_r(cmdline, " ", &saveptr); + char *ptr = strtok_r(cmdline, " ", &saveptr); while (ptr != NULL && check < ARGS_COUNT) { args[check++] = atoi(ptr); ptr = strtok_r(NULL, " ", &saveptr);