summaryrefslogtreecommitdiffstats
path: root/src/ufs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-14 09:11:07 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-14 09:11:07 +0200
commitdfb2b013aa42ee4661212ade7e76e85a03cab45c (patch)
treec703c7f65a65e6abab4aa72b67b74d000b760a56 /src/ufs.c
parenta643146280fffb97ff681d17a9b35fc15e6b67f8 (diff)
Additional length check in set_part_name() and set_part_name_chomp()
Diffstat (limited to 'src/ufs.c')
-rw-r--r--src/ufs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ufs.c b/src/ufs.c
index feae02c..9466027 100644
--- a/src/ufs.c
+++ b/src/ufs.c
@@ -191,13 +191,13 @@ static int set_ufs_info(const struct ufs_super_block *sb, partition_t *partition
case UP_UFS:
case UP_UFS_LE:
default:
- set_part_name(partition,(const char*)sb->fs_u11.fs_u1.fs_fsmnt,sizeof(partition->fsname));
+ set_part_name(partition,(const char*)sb->fs_u11.fs_u1.fs_fsmnt,sizeof(sb->fs_u11.fs_u1.fs_fsmnt));
snprintf(partition->info, sizeof(partition->info),
"UFS1 blocksize=%u", partition->blocksize);
break;
case UP_UFS2:
case UP_UFS2_LE:
- set_part_name(partition,(const char*)sb->fs_u11.fs_u2.fs_fsmnt,sizeof(partition->fsname));
+ set_part_name(partition,(const char*)sb->fs_u11.fs_u2.fs_fsmnt,sizeof(sb->fs_u11.fs_u2.fs_fsmnt));
snprintf(partition->info, sizeof(partition->info),
"UFS2 blocksize=%u", partition->blocksize);
break;