fix strtok_r

This commit is contained in:
Martin 2017-01-31 12:43:59 -05:00
parent 8c96d9e1ab
commit 17f25d370d
1 changed files with 1 additions and 1 deletions

View File

@ -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);