fix strtok_r
This commit is contained in:
parent
8c96d9e1ab
commit
17f25d370d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue