Skip to content
Snippets Groups Projects
Commit 842c186e authored by Stephen D's avatar Stephen D
Browse files

Code slightly more efficient

parent 96b351f2
Branches master
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ void register_command(char *cmd, void (*handler)(char *)) {
}
int parse_command(char *linein) {
for(int i = 0; i < 255; i++) {
for(int i = 0; i < cmd_index; i++) {
char cmd[256] = "";
char args[256] = "";
strsplit(linein, ' ', cmd, args);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment