Flags should no longer be files

This commit is contained in:
Gitea 2020-12-11 04:47:28 -06:00
parent 35a7640155
commit 236146fa5a

6
tee.c
View file

@ -26,9 +26,9 @@ int main(int argc, char * argv[]) {
}
}
while(strcmp("-a", argv[start_arg]) == 0 &&
strcmp("-i", argv[start_arg]) == 0 &&
strcmp("-ai", argv[start_arg]) == 0 &&
while(strcmp("-a", argv[start_arg]) == 0 ||
strcmp("-i", argv[start_arg]) == 0 ||
strcmp("-ai", argv[start_arg]) == 0 ||
strcmp("-ia", argv[start_arg]) == 0) {
start_arg++;
}