From 39dbc1934d506f4b1da32621a8ff7e2e165a0bb0 Mon Sep 17 00:00:00 2001 From: SemperVinco Date: Thu, 2 Mar 2017 01:04:06 +0100 Subject: arg bug fix --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.cpp') 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++; } -- cgit v1.2.3-70-g09d2