summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 001d797..a49ac6d 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -37,7 +37,7 @@
*
* @(#)bpf.c 8.2 (Berkeley) 3/28/94
*
- * $Id: bpf.c,v 1.45 1998/11/11 10:04:09 truckman Exp $
+ * $Id: bpf.c,v 1.46 1998/12/07 21:58:36 archie Exp $
*/
#include "bpfilter.h"
@@ -985,7 +985,7 @@ bpf_ifname(ifp, ifr)
char *s = ifp->if_name;
char *d = ifr->ifr_name;
- while (*d++ = *s++)
+ while ((*d++ = *s++) != 0)
continue;
d--; /* back to the null */
/* XXX Assume that unit number is less than 10. */
OpenPOWER on IntegriCloud