Use strlcat().

MFC after:	2 weeks
This commit is contained in:
Xin LI 2019-11-30 05:57:54 +00:00
parent 1952e2855a
commit f00c55e25a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355222

View File

@ -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) {