From 0abb9ca63476a6154ea806f6b2d9d2b1608ac3ec Mon Sep 17 00:00:00 2001 From: ae Date: Wed, 9 Mar 2016 14:47:05 +0000 Subject: Set buffer to empty string to prevent duplicated output in some cases. PR: 193888 --- sbin/ipfw/ipfw2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sbin/ipfw') diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index f6a9692..95a96ad 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -424,6 +424,7 @@ bp_flush(struct buf_pr *b) b->ptr = b->buf; b->avail = b->size; + b->buf[0] = '\0'; } /* -- cgit v1.1