diff --git a/prompt.c b/prompt.c index c4d7d2f..24b728f 100644 --- a/prompt.c +++ b/prompt.c @@ -54,7 +54,7 @@ static void execute(ToxWindow *self, char *u_cmd) if (cmd[0] == '/') { int i; - for (i = i1; i < strlen(cmd); i++) { //This doesn't work when it doesn't end with a space and another word + for (i = i; i < strlen(cmd); i++) { //This doesn't work when it doesn't end with a space and another word cmd[i - 1] = cmd[i]; //Still working on why } }