aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorSemperVinco <w.deweijer@hotmail.com>2017-03-02 01:04:06 +0100
committerSemperVinco <w.deweijer@hotmail.com>2017-03-02 01:04:06 +0100
commit39dbc1934d506f4b1da32621a8ff7e2e165a0bb0 (patch)
tree84a7957c32a4d7c16fbc06a48419d8e5de6807ee /main.cpp
parentfea3a0eed32db67ef435e7317727ca27f93ae31a (diff)
arg bug fix
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 3072f57..3d4a048 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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++;
}