diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-03 18:04:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-03 18:04:04 +0000 |
commit | 4bf6e3ecf22f323f058e99020b553f0cb71d9803 (patch) | |
tree | 77f2cad8ef494646b6c85179d1284b19b2901bc6 /sbin | |
parent | c32c061d9e1c89e695b1bdadcb9562872507b44c (diff) |
trivial snprintf
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/routed/parms.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/routed/parms.c b/sbin/routed/parms.c index 5e2d110e448..d5b0db00a81 100644 --- a/sbin/routed/parms.c +++ b/sbin/routed/parms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parms.c,v 1.8 2003/03/13 09:09:27 deraadt Exp $ */ +/* $OpenBSD: parms.c,v 1.9 2003/04/03 18:04:03 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 @@ -326,7 +326,8 @@ gwkludge(void) ifp->int_dstaddr = dst; ifp->int_addr = gate; ifp->int_metric = metric; - (void)sprintf(ifp->int_name, "%s-%s", type, naddr_ntoa(dst)); + (void)snprintf(ifp->int_name, sizeof(ifp->int_name), + "%s-%s", type, naddr_ntoa(dst)); ifp->int_index = -1; get_parms(ifp); |