summaryrefslogtreecommitdiff
path: root/misc/tune2fs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2020-01-25 03:07:05 -0500
committerTheodore Ts'o <tytso@mit.edu>2020-01-25 03:07:05 -0500
commit0b47dde9fd8859d8962b601e6cc8d4d705d303ab (patch)
tree5a647262b818f01df362dc40188697bbb372d966 /misc/tune2fs.c
parenta320a1c6a0aa57d91b3471a7a65eef2688960568 (diff)
parentbc56227376223c02b16703691fd0de6929a1036b (diff)
downloade2fsprogs-0b47dde9fd8859d8962b601e6cc8d4d705d303ab.tar.gz
Merge branch 'maint' into next
Diffstat (limited to 'misc/tune2fs.c')
-rw-r--r--misc/tune2fs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index a0448f63..dd5d40ae 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -2990,8 +2990,7 @@ retry_open:
if (print_label) {
/* For e2label emulation */
- printf("%.*s\n", (int) sizeof(sb->s_volume_name),
- sb->s_volume_name);
+ printf("%.*s\n", EXT2_LEN_STR(sb->s_volume_name));
remove_error_table(&et_ext2_error_table);
goto closefs;
}