diff --git a/sys/fs/filecorefs/filecore_vnops.c b/sys/fs/filecorefs/filecore_vnops.c index b5ebb6dd1093..1a1e007042d0 100644 --- a/sys/fs/filecorefs/filecore_vnops.c +++ b/sys/fs/filecorefs/filecore_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: filecore_vnops.c,v 1.18 2006/05/15 01:29:02 christos Exp $ */ +/* $NetBSD: filecore_vnops.c,v 1.19 2007/03/04 21:36:38 jnemeth Exp $ */ /*- * Copyright (c) 1994 The Regents of the University of California. @@ -66,7 +66,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: filecore_vnops.c,v 1.18 2006/05/15 01:29:02 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: filecore_vnops.c,v 1.19 2007/03/04 21:36:38 jnemeth Exp $"); #include #include @@ -255,7 +255,7 @@ filecore_read(v) return (error); } - error = uiomove(bp->b_data + on, (int)n, uio); + error = uiomove((char *)(bp->b_data) + on, (int)n, uio); #ifdef FILECORE_DEBUG_BR printf("brelse(%p) vn2\n", bp); #endif