summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-03 18:04:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-03 18:04:04 +0000
commit4bf6e3ecf22f323f058e99020b553f0cb71d9803 (patch)
tree77f2cad8ef494646b6c85179d1284b19b2901bc6 /sbin
parentc32c061d9e1c89e695b1bdadcb9562872507b44c (diff)
trivial snprintf
Diffstat (limited to 'sbin')
-rw-r--r--sbin/routed/parms.c5
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);