fsck.f2fs: do not print content beyond sb->version
authorJunling Zheng <zhengjunling@huawei.com>
Fri, 8 Jun 2018 05:11:48 +0000 (13:11 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 28 Aug 2018 06:49:26 +0000 (23:49 -0700)
commitcacd1bd102b251cf25683fe0a6062e7342812cd8
treef2a852631dc2e6c57c41ebcdbb811b777892df88
parent25b71b53ed42ebc09ab68476c8a2de6fcf726096
fsck.f2fs: do not print content beyond sb->version

Currently, versions in f2fs_configuration have one more byte than
those in sb, so versions in sb may not end with '\0', and then
print_raw_sb_info() will print something beyond sb->version.

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/mount.c