diff options
author | SemperVinco <w.deweijer@hotmail.com> | 2017-03-02 01:04:06 +0100 |
---|---|---|
committer | SemperVinco <w.deweijer@hotmail.com> | 2017-03-02 01:04:06 +0100 |
commit | 39dbc1934d506f4b1da32621a8ff7e2e165a0bb0 (patch) | |
tree | 84a7957c32a4d7c16fbc06a48419d8e5de6807ee /main.cpp | |
parent | fea3a0eed32db67ef435e7317727ca27f93ae31a (diff) |
arg bug fix
Diffstat (limited to 'main.cpp')
-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++; } |