aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lam
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-06-27 21:11:19 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-06-27 21:11:19 +0000
commit21e21aad32961350db2730edfc4347d42a470f5e (patch)
tree6f44c62fc57c348415ae6f03c459196704b0bd23 /usr.bin/lam
parentf63eec78e4c6def9db4bfabbca645118cbb147f9 (diff)
downloadsrc-21e21aad32961350db2730edfc4347d42a470f5e.tar.gz
src-21e21aad32961350db2730edfc4347d42a470f5e.zip
Notes
Diffstat (limited to 'usr.bin/lam')
-rw-r--r--usr.bin/lam/lam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c
index 8a65a8da43b2..e01fc9d0e792 100644
--- a/usr.bin/lam/lam.c
+++ b/usr.bin/lam/lam.c
@@ -114,9 +114,10 @@ getargs(char *av[])
P = S = F = T = 0; /* capitalized options */
while ((p = *++av) != NULL) {
if (*p != '-' || !p[1]) {
- if (*p == '-')
+ morefiles++;
+ if (*p == '-') {
ip->fp = stdin;
- else if ((ip->fp = fopen(p, "r")) == NULL) {
+ } else if ((ip->fp = fopen(p, "r")) == NULL) {
err(1, "%s", p);
}
ip->pad = P;