diff options
Diffstat (limited to 'cli/options.cxx')
-rw-r--r-- | cli/options.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/options.cxx b/cli/options.cxx index 43f271b..a59fb66 100644 --- a/cli/options.cxx +++ b/cli/options.cxx @@ -274,9 +274,9 @@ namespace cli return base::next (); else { - hold_.swap (args_.front ()); + hold_[i_ == 0 ? ++i_ : --i_].swap (args_.front ()); args_.pop_front (); - return hold_.c_str (); + return hold_[i_].c_str (); } } @@ -420,7 +420,7 @@ namespace cli { using namespace std; - string o (s.next ()); + const char* o (s.next ()); if (s.more ()) { |