summaryrefslogtreecommitdiff
path: root/isofs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-03-20 13:31:42 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-03-25 08:52:17 +0100
commit2d9c5530456fce1b047fedf83ff48412509b7164 (patch)
tree77ea16e7ea5e168a709e7aebce97502bf22c417b /isofs
parent59b6c01edcd7013a112aeaf9d0bc33a8d2a2b8f1 (diff)
isofs: also copy the terminating zero in read_symlink_hook
* isofs/inode.c (read_symlink_hook): Use memcpy, also copy terminating zero.
Diffstat (limited to 'isofs')
-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 *)