diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 09:56:54 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 09:56:54 +0000 |
commit | 0aff25f0baaa9ebac7ca3711513fcf855fc017ab (patch) | |
tree | ddf52de5d8bd7bb8e95f5881942a1ac919e7f4e5 /arg_parser.cc | |
parent | Adding debian version 1.14-2. (diff) | |
download | lzip-0aff25f0baaa9ebac7ca3711513fcf855fc017ab.tar.xz lzip-0aff25f0baaa9ebac7ca3711513fcf855fc017ab.zip |
Merging upstream version 1.15~pre1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'arg_parser.cc')
-rw-r--r-- | arg_parser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arg_parser.cc b/arg_parser.cc index 13bcbcb..a28d2ba 100644 --- a/arg_parser.cc +++ b/arg_parser.cc @@ -1,5 +1,5 @@ /* Arg_parser - POSIX/GNU command line argument parser. (C++ version) - Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 + Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz. This library is free software: you can redistribute it and/or modify @@ -44,7 +44,7 @@ bool Arg_parser::parse_long_option( const char * const opt, const char * const a // Test all long options for either exact match or abbreviated matches. for( int i = 0; options[i].code != 0; ++i ) - if( options[i].name && !std::strncmp( options[i].name, &opt[2], len ) ) + if( options[i].name && std::strncmp( options[i].name, &opt[2], len ) == 0 ) { if( std::strlen( options[i].name ) == len ) // Exact match found { index = i; exact = true; break; } |