diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-09-20 04:29:52 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-09-20 04:29:52 +0000 |
commit | 65ccea01c30d7a31c943c605a0ba34ea948a380b (patch) | |
tree | c3c03c6dffd90dc2b3fcc90fea671d066bce97aa /usr.bin/rcs/rcsprog.c | |
parent | db911dde0bfe30a5b31e3e51913371bbca49a968 (diff) |
loop through argv[] correctly instead of reusing argv[0] all the time.
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index c4b41397e7e..75ceb805b08 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.3 2005/09/20 04:24:41 joris Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.4 2005/09/20 04:29:51 joris Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -174,8 +174,8 @@ rcs_main(int argc, char **argv) } for (i = 0; i < argc; i++) { - printf("RCS file: %s\n", argv[0]); - file = rcs_open(argv[0], flags, fmode); + printf("RCS file: %s\n", argv[i]); + file = rcs_open(argv[i], flags, fmode); if (file == NULL) { return (1); } |