Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/map-mbone strlcat



details:   https://anonhg.NetBSD.org/src/rev/9ebfd3e1b2b9
branches:  trunk
changeset: 547320:9ebfd3e1b2b9
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sat May 17 00:44:49 2003 +0000

description:
strlcat

diffstat:

 usr.sbin/map-mbone/mapper.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7aa618bf7453 -r 9ebfd3e1b2b9 usr.sbin/map-mbone/mapper.c
--- a/usr.sbin/map-mbone/mapper.c       Sat May 17 00:41:36 2003 +0000
+++ b/usr.sbin/map-mbone/mapper.c       Sat May 17 00:44:49 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mapper.c,v 1.17 2003/05/16 23:00:29 dsl Exp $  */
+/*     $NetBSD: mapper.c,v 1.18 2003/05/17 00:44:49 itojun Exp $       */
 
 /* Mapper for connections between MRouteD multicast routers.
  * Written by Pavel Curtis <Pavel%PARC.Xerox.Com@localhost>
@@ -177,7 +177,7 @@
        default:
            fmt[0] = '\0';
            if (severity == LOG_WARNING)
-               strcat(fmt, "warning - ");
+               strlcat(fmt, "warning - ", sizeof(fmt));
            strncat(fmt, format, 80);
            format = fmt;
            va_start(ap, format);



Home | Main Index | Thread Index | Old Index