1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

shell: remove useless copying of input string

This commit is contained in:
Christian Mehlis 2014-02-10 15:41:04 +01:00
parent 14cb81d914
commit 33239487bf

View File

@ -90,10 +90,8 @@ static void print_help(const shell_command_t *command_list)
static void handle_input_line(shell_t *shell, char *line)
{
char line_copy[shell->shell_buffer_size];
char *saveptr;
strncpy(line_copy, line, sizeof(line_copy));
char *command = strtok_r(line_copy, " ", &saveptr);
char *command = strtok_r(line, " ", &saveptr);
void (*handler)(char *) = NULL;