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++]; }