Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rtsold strlcpy



details:   https://anonhg.NetBSD.org/src/rev/16791681be58
branches:  trunk
changeset: 532136:16791681be58
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri May 31 21:24:26 2002 +0000

description:
strlcpy

diffstat:

 usr.sbin/rtsold/probe.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 01f8c30c061c -r 16791681be58 usr.sbin/rtsold/probe.c
--- a/usr.sbin/rtsold/probe.c   Fri May 31 21:19:03 2002 +0000
+++ b/usr.sbin/rtsold/probe.c   Fri May 31 21:24:26 2002 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: probe.c,v 1.6 2002/05/31 10:22:14 itojun Exp $ */
-/*     $KAME: probe.c,v 1.14 2002/05/31 10:10:03 itojun Exp $  */
+/*     $NetBSD: probe.c,v 1.7 2002/05/31 21:24:26 itojun Exp $ */
+/*     $KAME: probe.c,v 1.15 2002/05/31 21:22:08 itojun Exp $  */
 
 /*
  * Copyright (C) 1998 WIDE Project.
@@ -109,7 +109,7 @@
                return;
        }
        memset(&dr, 0, 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));



Home | Main Index | Thread Index | Old Index