Configuration parser bug fixed.

This commit is contained in:
Erik Zandvliet 2013-04-24 10:25:34 +02:00
parent 4db81af990
commit a7de3bf08f
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ void Util::Config::printHelp(std::ostream & output){
/// Parses commandline arguments.
/// Calls exit if an unknown option is encountered, printing a help message.
void Util::Config::parseArgs(int argc, char ** argv){
void Util::Config::parseArgs(int & argc, char ** & argv){
int opt = 0;
std::string shortopts;
struct option * longOpts = (struct option*)calloc(long_count + 1, sizeof(struct option));