summaryrefslogtreecommitdiff
path: root/sys/netncp
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-10-11 14:58:34 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-10-11 14:58:34 +0000
commit2b7f24d21041e3f89b69c6ba9cb4864d472246ad (patch)
tree60ccb9ea10edcf3d8fc8975fb348b756ea207e35 /sys/netncp
parent890b32ee41df0d6e6a46be59babec6f1bba0606c (diff)
downloadsrc-test2-2b7f24d21041e3f89b69c6ba9cb4864d472246ad.tar.gz
src-test2-2b7f24d21041e3f89b69c6ba9cb4864d472246ad.zip
Notes
Diffstat (limited to 'sys/netncp')
-rw-r--r--sys/netncp/ncp_ncp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netncp/ncp_ncp.c b/sys/netncp/ncp_ncp.c
index 8d86c0219430..613c2d0ef342 100644
--- a/sys/netncp/ncp_ncp.c
+++ b/sys/netncp/ncp_ncp.c
@@ -475,7 +475,8 @@ ncp_write(struct ncp_conn *conn, ncp_fh *file, struct uio *uiop, struct ucred *c
break;
if (error) {
backup = len;
- uiop->uio_iov->iov_base -= backup;
+ uiop->uio_iov->iov_base =
+ (char *)uiop->uio_iov->iov_base - backup;
uiop->uio_iov->iov_len += backup;
uiop->uio_offset -= backup;
uiop->uio_resid += backup;