Module Name:    src
Committed By:   mbalmer
Date:           Sat Apr  2 10:19:27 UTC 2011

Modified Files:
        src/usr.sbin/pppd/pppd: sys-bsd.c

Log Message:
Fix PR 42923, from Takahiro HAYASHI, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/usr.sbin/pppd/pppd/sys-bsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/pppd/pppd/sys-bsd.c
diff -u src/usr.sbin/pppd/pppd/sys-bsd.c:1.62 src/usr.sbin/pppd/pppd/sys-bsd.c:1.63
--- src/usr.sbin/pppd/pppd/sys-bsd.c:1.62	Wed Mar 10 13:45:39 2010
+++ src/usr.sbin/pppd/pppd/sys-bsd.c	Sat Apr  2 10:19:27 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys-bsd.c,v 1.62 2010/03/10 13:45:39 christos Exp $	*/
+/*	$NetBSD: sys-bsd.c,v 1.63 2011/04/02 10:19:27 mbalmer Exp $	*/
 
 /*
  * sys-bsd.c - System-dependent procedures for setting up
@@ -79,7 +79,7 @@
 #if 0
 #define RCSID	"Id: sys-bsd.c,v 1.47 2000/04/13 12:04:23 paulus Exp "
 #else
-__RCSID("$NetBSD: sys-bsd.c,v 1.62 2010/03/10 13:45:39 christos Exp $");
+__RCSID("$NetBSD: sys-bsd.c,v 1.63 2011/04/02 10:19:27 mbalmer Exp $");
 #endif
 #endif
 
@@ -793,7 +793,7 @@
     addreq6.ifra_prefixmask.sin6_len = sizeof(struct sockaddr_in6);
     memset(&addreq6.ifra_prefixmask.sin6_addr, 0xff,
 	sizeof(addreq6.ifra_prefixmask.sin6_addr) - sizeof(our_eui64));
-    memset(&addreq6.ifra_prefixmask.sin6_addr +
+    memset((char *)&addreq6.ifra_prefixmask.sin6_addr +
 	sizeof(addreq6.ifra_prefixmask.sin6_addr) - sizeof(our_eui64), 0x00,
 	sizeof(our_eui64));
 

Reply via email to