diff options
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ int main(int argc,char **argv){ int k = 1; // Increase past options; - if(string(argv[k]) == "-p") { + if(argc>k && string(argv[k]) == "-p") { opt_pos = true; k++; } |