From 96fc3031632272c5b4b09e62e7058d92105441ed Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 26 Sep 2016 19:34:03 +0200 Subject: [PATCH] getopt: Windows build fix --- src/sys/getopt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/getopt.cpp b/src/sys/getopt.cpp index b182d287..09bd1e18 100644 --- a/src/sys/getopt.cpp +++ b/src/sys/getopt.cpp @@ -169,7 +169,7 @@ int getopt::parse() ++this->index; if (m_private->m_opts[i].has_arg) { - if (this->index >= m_private->argc) + if (this->index >= m_private->m_argc) goto too_few; this->arg = argv[this->index++]; }