svn commit: r355222 - head/sbin/ipfw
Xin LI
delphij at FreeBSD.org
Sat Nov 30 05:57:55 UTC 2019
Author: delphij
Date: Sat Nov 30 05:57:54 2019
New Revision: 355222
URL: https://svnweb.freebsd.org/changeset/base/355222
Log:
Use strlcat().
MFC after: 2 weeks
Modified:
head/sbin/ipfw/dummynet.c
Modified: head/sbin/ipfw/dummynet.c
==============================================================================
--- head/sbin/ipfw/dummynet.c Sat Nov 30 05:43:24 2019 (r355221)
+++ head/sbin/ipfw/dummynet.c Sat Nov 30 05:57:54 2019 (r355222)
@@ -497,7 +497,7 @@ print_flowset_parms(struct dn_fs *fs, char *prefix)
fs->max_th,
1.0 * fs->max_p / (double)(1 << SCALE_RED));
if (fs->flags & DN_IS_ECN)
- strncat(red, " (ecn)", 6);
+ strlcat(red, " (ecn)", sizeof(red));
#ifdef NEW_AQM
/* get AQM parameters */
} else if (fs->flags & DN_IS_AQM) {
More information about the svn-src-all
mailing list