aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2019-11-30 05:57:54 +0000
committerXin LI <delphij@FreeBSD.org>2019-11-30 05:57:54 +0000
commitf00c55e25abe030698c4bc2c31cd97aec80d71c5 (patch)
tree18729078b7fc6ed5f31485b7b4c5a946a3885f2d /sbin/ipfw
parent1952e2855a9a68aeb87490d730ca0f104b75051b (diff)
downloadsrc-f00c55e25abe030698c4bc2c31cd97aec80d71c5.tar.gz
src-f00c55e25abe030698c4bc2c31cd97aec80d71c5.zip
Use strlcat().
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=355222
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/dummynet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/dummynet.c b/sbin/ipfw/dummynet.c
index 6be21cfb230f..6369c0a17b51 100644
--- a/sbin/ipfw/dummynet.c
+++ b/sbin/ipfw/dummynet.c
@@ -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) {