diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index e3a9b1fac75a2c4f6d04c94f6c22bb39d530d523..23119fe7ad6241e504f4bc7063c22988882d8a0c 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c @@ -147,7 +147,7 @@ static int ufs_symlink (struct inode * dir, struct dentry * dentry, } else { /* fast symlink */ inode->i_op = &ufs_fast_symlink_inode_operations; - memcpy((char*)&UFS_I(inode)->i_u1.i_data,symname,l); + memcpy(UFS_I(inode)->i_u1.i_symlink, symname, l); inode->i_size = l-1; } mark_inode_dirty(inode);