summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/cvs/cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/cmd.c b/usr.bin/cvs/cmd.c
index 3a6b17103d7..02ec2a7c1be 100644
--- a/usr.bin/cvs/cmd.c
+++ b/usr.bin/cvs/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.1 2005/03/24 01:03:41 joris Exp $ */
+/* $OpenBSD: cmd.c,v 1.2 2005/03/28 17:17:38 joris Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -54,7 +54,7 @@ cvs_startcmd(struct cvs_cmd *cmd, int argc, char **argv)
if ((ret = c->cmd_options(cmd->cmd_opts, argc, argv, &i)) < 0)
return (ret);
- argc += i;
+ argc -= i;
argv += i;
if ((c->cmd_flags & CVS_CMD_ALLOWSPEC) && argc != 0)