commit - f499f7c795a9363b63dc548229e30616b5a4de80
commit + 5f047452bc041487229b367b84823a9d7c31a432
blob - d4d9b7779192d0c57410fae5e0c322aba8c71f03
blob + ccb58f6170c15e882d4d13c5b0573a349f3e3f07
--- rover.c
+++ rover.c
while (igetstr(INPUT, INPUTSZ)) {
int length = strlen(INPUT);
ok = 1;
- for (i = 0; i < rover.nfiles; i++) {
+ for (i = 0; i < rover.nfiles; i++)
if (
!strncmp(ENAME(i), INPUT, length) &&
(!strcmp(ENAME(i) + length, "") ||
ok = 0;
break;
}
- }
update_input(prompt, ok ? GREEN : RED);
}
clear_message();