Skip to content
Snippets Groups Projects
Commit 0e5f2a1f authored by Joey Le's avatar Joey Le
Browse files

fixed more typos

parent 57f7c49b
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ int build_cmd_list(char *cmd_line, command_list_t *clist)
strcpy(clist->commands[command_count].exe, command_and_arguments);
int argument_count = 0;
while ((command_and_arguments = strtok(NULL, SPACE_CHAR) != NULL ) {
while ((command_and_arguments = strtok(NULL, SPACE_CHAR)) != NULL) {
if (strlen(command_and_arguments) >= ARG_MAX) {
free(trimmed_line);
......@@ -116,7 +116,7 @@ int build_cmd_list(char *cmd_line, command_list_t *clist)
return ERR_TOO_MANY_COMMANDS;
}
clist->count = command_count;
clist->num = command_count;
free(trimmed_line);
return OK;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment