summaryrefslogtreecommitdiff
path: root/cli/options.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/options.cxx')
-rw-r--r--cli/options.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/options.cxx b/cli/options.cxx
index d92af58..d5e7e67 100644
--- a/cli/options.cxx
+++ b/cli/options.cxx
@@ -393,7 +393,7 @@ _parse (int start,
{
start += (*(i->second)) (*this, argv + start, argc - start);
}
- else if (opt && s[0] == '-' && s[1] != '\0')
+ else if (opt && std::strncmp (s, "-", 1) == 0 && s[1] != '\0')
{
switch (opt_mode)
{