[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 03/13: isofs: also copy the terminating zero in read_symlink_hook
From: |
Samuel Thibault |
Subject: |
[hurd] 03/13: isofs: also copy the terminating zero in read_symlink_hook |
Date: |
Wed, 26 Mar 2014 12:12:14 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 2d9c5530456fce1b047fedf83ff48412509b7164
Author: Justus Winter <address@hidden>
Date: Thu Mar 20 13:31:42 2014 +0100
isofs: also copy the terminating zero in read_symlink_hook
* isofs/inode.c (read_symlink_hook): Use memcpy, also copy terminating
zero.
---
isofs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/isofs/inode.c b/isofs/inode.c
index f9d4c41..f542d18 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 *)
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (bbb6465 -> d8b7d42), Samuel Thibault, 2014/03/26
- [hurd] 10/13: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd, Samuel Thibault, 2014/03/26
- [hurd] 05/13: hurd: fix receiver type, honor DEFAULT_PAGER_IMPORTS, Samuel Thibault, 2014/03/26
- [hurd] 07/13: mach-defpager: fix local includes, Samuel Thibault, 2014/03/26
- [hurd] 12/13: Handle fonts with multiple-of-8 bbox width, Samuel Thibault, 2014/03/26
- [hurd] 01/13: libpager: fix comment of pager_change_attributes, Samuel Thibault, 2014/03/26
- [hurd] 13/13: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2014/03/26
- [hurd] 11/13: Fix setting LGE flag, Samuel Thibault, 2014/03/26
- [hurd] 09/13: Align VGA buffers, Samuel Thibault, 2014/03/26
- [hurd] 08/13: mach-defpager: replace the magic typecast with a hash table, Samuel Thibault, 2014/03/26
- [hurd] 03/13: isofs: also copy the terminating zero in read_symlink_hook,
Samuel Thibault <=
- [hurd] 06/13: mach-defpager: fix receiver lookups, Samuel Thibault, 2014/03/26
- [hurd] 04/13: libdiskfs: fix string termination, Samuel Thibault, 2014/03/26
- [hurd] 02/13: libpager: fix potential deadlock, Samuel Thibault, 2014/03/26