summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2003-06-16 09:44:53 +0000
committermaxim <maxim@FreeBSD.org>2003-06-16 09:44:53 +0000
commit5a341ceea0cbdc652b00645a7c1937a34fe936bf (patch)
tree318adda6fe80028813096463ea4324a102111567 /sbin
parentbd4fe20bfd58d025469ca028038100c6dd72fb66 (diff)
downloadFreeBSD-src-5a341ceea0cbdc652b00645a7c1937a34fe936bf.zip
FreeBSD-src-5a341ceea0cbdc652b00645a7c1937a34fe936bf.tar.gz
o Pass a correct argument to printf(3).
PR: bin/51750 Submitted by: Vasil Dimov <vd@datamax.bg> MFC after: 2 weeks
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipfw/ipfw2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index b33fdc0..f0a1030 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -2804,7 +2804,7 @@ add(int ac, char *av[])
cmd = next_cmd(cmd);
}
} else if (first_cmd != cmd) {
- errx(EX_DATAERR, "invalid protocol ``%s''", av);
+ errx(EX_DATAERR, "invalid protocol ``%s''", *av);
} else
goto read_options;
OR_BLOCK(get_proto);
@@ -3137,7 +3137,8 @@ read_options:
proto = cmd->arg1;
ac--; av++;
} else
- errx(EX_DATAERR, "invalid protocol ``%s''", av);
+ errx(EX_DATAERR, "invalid protocol ``%s''",
+ *av);
break;
case TOK_SRCIP:
@@ -3184,7 +3185,7 @@ read_options:
case TOK_MACTYPE:
NEED1("missing mac type");
if (!add_mactype(cmd, ac, *av))
- errx(EX_DATAERR, "invalid mac type %s", av);
+ errx(EX_DATAERR, "invalid mac type %s", *av);
ac--; av++;
break;
OpenPOWER on IntegriCloud