aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-23 21:18:58 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-23 21:18:58 +0200
commita23d69ff8f2b44d6eb2052f5403f21b79403b22d (patch)
tree97c3802f98cc0f74fb2ed5a43e09c48ffbfc421a
parentfix errors and warnings (diff)
downloadautopasswd-a23d69ff8f2b44d6eb2052f5403f21b79403b22d.tar.gz
autopasswd-a23d69ff8f2b44d6eb2052f5403f21b79403b22d.tar.bz2
autopasswd-a23d69ff8f2b44d6eb2052f5403f21b79403b22d.tar.xz
fix m bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/autopasswd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/autopasswd.c b/src/autopasswd.c
index 8582932..f464820 100644
--- a/src/autopasswd.c
+++ b/src/autopasswd.c
@@ -170,7 +170,7 @@ int main(int argc, char** argv)
"Display copyright information");
args_add_option(args_new_argumentless(NULL, 0, "+w", "--warranty", NULL),
"Display warranty disclaimer");
- args_add_option(args_new_argumentless(NULL, 0, "+v", "--verbose", NULL),
+ args_add_option(args_new_argumentless(NULL, 0, "-v", "--verbose", NULL),
"Display extra information");
args_add_option(args_new_argumented(NULL, "INT", 0, "-b", "--bump-level", NULL),
"Select bump level, can contain + or - to perform accumulated adjustment");
@@ -249,10 +249,10 @@ int main(int argc, char** argv)
case 0:
break;
case '+':
- bump_level += atol(arg);
+ bump_level += atol(arg + 1);
break;
case '-':
- bump_level -= atol(arg);
+ bump_level -= atol(arg + 1);
break;
default:
bump_level = atol(arg);