summaryrefslogtreecommitdiff
path: root/isofs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'isofs/inode.c')
-rw-r--r--isofs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isofs/inode.c b/isofs/inode.c
index f9d4c417..f542d18b 100644
--- a/isofs/inode.c
+++ b/isofs/inode.c
@@ -492,7 +492,7 @@ read_disknode (struct node *np, struct dirrect *dr,
static error_t
read_symlink_hook (struct node *np, char *buf)
{
- bcopy (np->dn->link_target, buf, np->dn_stat.st_size);
+ memcpy (buf, np->dn->link_target, np->dn_stat.st_size + 1);
return 0;
}
error_t (*diskfs_read_symlink_hook) (struct node *, char *)