Fix kernel build.

Reported by:	tinderbox
This commit is contained in:
Xin LI 2005-08-28 13:11:08 +00:00
parent d8e87d835b
commit e68796868a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149551

View file

@ -2214,7 +2214,7 @@ linux_ifconf(struct thread *td, struct ifconf *uifc)
ifc.ifc_len = valid_len;
sbuf_finish(sb);
memcpy(ifc.ifc_buf, sbuf_data(sb), ifc.ifc_len);
memcpy(PTRIN(ifc.ifc_buf), sbuf_data(sb), ifc.ifc_len);
error = copyout(&ifc, uifc, sizeof(ifc));
sbuf_delete(sb);