Skip to content

Commit 94a0f7e

Browse files
committed
fix some compilation issues on newer gcc
1 parent f33c20a commit 94a0f7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ipfw/dummynet.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ print_flowset_parms(struct dn_fs *fs, char *prefix)
245245
fs->max_th,
246246
1.0 * fs->max_p / (double)(1 << SCALE_RED));
247247
if (fs->flags & DN_IS_ECN)
248-
strncat(red, " (ecn)", 6);
248+
strncat(red, " (ecn)", 7);
249249
} else
250250
sprintf(red, "droptail");
251251

sys/netpfil/ipfw/ip_dn_glue.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ dn_c_copy_pipe(struct dn_schk *s, struct copy_args *a, int nq)
631631
if (!is7) {
632632
if (s->profile) {
633633
struct dn_profile *pf = s->profile;
634-
strncpy(pipe8->name, pf->name, sizeof(pf->name));
634+
strncpy(pipe8->name, pf->name, sizeof(pipe8->name));
635635
pipe8->loss_level = pf->loss_level;
636636
pipe8->samples_no = pf->samples_no;
637637
}

0 commit comments

Comments
 (0)