summaryrefslogtreecommitdiff
path: root/libnetfs/dir-lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/dir-lookup.c')
-rw-r--r--libnetfs/dir-lookup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 6b5cfda9..ed7853ec 100644
--- a/libnetfs/dir-lookup.c
+++ b/libnetfs/dir-lookup.c
@@ -75,7 +75,6 @@ netfs_S_dir_lookup (struct protid *diruser,
dnp = diruser->po->np;
mutex_lock (&dnp->lock);
- np = 0;
netfs_nref (dnp); /* acquire a reference for later netfs_nput */
@@ -300,7 +299,7 @@ netfs_S_dir_lookup (struct protid *diruser,
if (nextname)
{
linkbuf[linklen] = '/';
- bcopy (nextname, linkbuf + linklen + 1,
+ memcpy (linkbuf + linklen + 1, nextname,
nextnamelen - 1);
}
linkbuf[nextnamelen + linklen] = '\0';