Actually, I was right, but for the wrong reasons.

This commit is contained in:
MrStonedOne
2017-12-19 19:37:23 -08:00
parent a1f45a3c90
commit e9ed75ec00

View File

@@ -378,7 +378,7 @@ int main(int argc, const char * argv[]) {
ios_base::sync_with_stdio(false);
ios::sync_with_stdio(false);
bool usestdio = false;
if (argc && !strcmp(argv[0], "-s"))
if (argc >= 2 && !strcmp(argv[1], "-s"))
usestdio = true;
char exit; //Used to stop the program from immediately exiting