summaryrefslogtreecommitdiff
path: root/nfs/nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'nfs/nfs.c')
-rw-r--r--nfs/nfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfs/nfs.c b/nfs/nfs.c
index 46c95c22..27a3a4fe 100644
--- a/nfs/nfs.c
+++ b/nfs/nfs.c
@@ -154,7 +154,7 @@ xdr_encode_data (int *p, char *data, size_t len)
p[nints] = 0;
*p++ = htonl (len);
- bcopy (data, p, len);
+ memcpy (p, data, len);
return p + nints;
}
@@ -379,6 +379,7 @@ xdr_decode_fhandle (int *p, struct node **npp)
size_t len;
len = protocol_version == 2 ? NFS2_FHSIZE : ntohl (*p++);
+ /* Enter into cache */
lookup_fhandle (p, len, npp);
return p + len / sizeof (int);
}