|
@@ -181,8 +181,8 @@ static int ext4_file_open(struct inode * inode, struct file * filp)
|
|
path.dentry = mnt->mnt_root;
|
|
path.dentry = mnt->mnt_root;
|
|
cp = d_path(&path, buf, sizeof(buf));
|
|
cp = d_path(&path, buf, sizeof(buf));
|
|
if (!IS_ERR(cp)) {
|
|
if (!IS_ERR(cp)) {
|
|
- memcpy(sbi->s_es->s_last_mounted, cp,
|
|
|
|
- sizeof(sbi->s_es->s_last_mounted));
|
|
|
|
|
|
+ strlcpy(sbi->s_es->s_last_mounted, cp,
|
|
|
|
+ sizeof(sbi->s_es->s_last_mounted));
|
|
ext4_mark_super_dirty(sb);
|
|
ext4_mark_super_dirty(sb);
|
|
}
|
|
}
|
|
}
|
|
}
|