diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-22 09:09:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-22 09:09:33 +0000 |
commit | 79c512971e63b9113a378f3d82f239e6518a390b (patch) | |
tree | 60a70a4351b5c752d36c6be85e06dfe53d24dfde /usr.sbin/rtsold/probe.c | |
parent | 81ed744a68ae422432934fb4032bbb35f4b0862d (diff) |
more strcpy/sprintf death; mpech ok
Diffstat (limited to 'usr.sbin/rtsold/probe.c')
-rw-r--r-- | usr.sbin/rtsold/probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rtsold/probe.c b/usr.sbin/rtsold/probe.c index ea1e175d8cc..2b79441cd25 100644 --- a/usr.sbin/rtsold/probe.c +++ b/usr.sbin/rtsold/probe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: probe.c,v 1.4 2002/02/16 21:28:09 millert Exp $ */ +/* $OpenBSD: probe.c,v 1.5 2002/05/22 09:09:32 deraadt Exp $ */ /* $KAME: probe.c,v 1.10 2000/08/13 06:14:59 itojun Exp $ */ /* @@ -112,7 +112,7 @@ defrouter_probe(int ifindex) return; } bzero(&dr, sizeof(dr)); - strcpy(dr.ifname, "lo0"); /* dummy interface */ + strlcpy(dr.ifname, "lo0", sizeof dr.ifname); /* dummy interface */ if (ioctl(s, SIOCGDRLST_IN6, (caddr_t)&dr) < 0) { warnmsg(LOG_ERR, __FUNCTION__, "ioctl(SIOCGDRLST_IN6): %s", strerror(errno)); |