summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-03-28 17:17:39 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-03-28 17:17:39 +0000
commitc3dabaea330fd874f17b1de119fd39db86a5cf5b (patch)
tree0cbc61d6937d5a97874ef341eb109a144611d10d /usr.bin
parent7b1fc002fa6ade198f8a8179bcfcaed595897821 (diff)
fix argument count in cvs_startcmd()
ok jfb@
Diffstat (limited to 'usr.bin')
-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)