diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-11-25 21:32:53 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-11-25 21:32:53 +0000 |
commit | f7a1962663a6daef21bb477da212c28767307232 (patch) | |
tree | 0668f91b019d0de8f1086c945e2e230f65544d89 | |
parent | 06601d07c3f3a948ad4b435e9cce75bf9077f455 (diff) |
off by one in err()
-rw-r--r-- | sbin/ipsecadm/ipsecadm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c index d9e5a5f459f..1f02e40ee56 100644 --- a/sbin/ipsecadm/ipsecadm.c +++ b/sbin/ipsecadm/ipsecadm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecadm.c,v 1.82 2004/09/27 03:20:21 jaredy Exp $ */ +/* $OpenBSD: ipsecadm.c,v 1.83 2004/11/25 21:32:52 markus Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -633,7 +633,7 @@ main(int argc, char *argv[]) else if (!strcmp(argv[i] + 1, "ipcomp")) smsg.sadb_msg_satype = SADB_X_SATYPE_IPCOMP; else - errx(1, "invalid SA type %s", argv[i + 1]); + errx(1, "invalid SA type %s", argv[i] + 1); i++; continue; } |