aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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++;
}