From 734634b29a4963b8b01021856f46e34c2734e6c3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 22 Sep 2009 11:53:07 +0200 Subject: [PATCH] libblkid: fix blkid_probe_set_utf8label() call for Joliet Signed-off-by: Karel Zak --- shlibs/blkid/src/superblocks/iso9660.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shlibs/blkid/src/superblocks/iso9660.c b/shlibs/blkid/src/superblocks/iso9660.c index 76e550b1..3206f5ca 100644 --- a/shlibs/blkid/src/superblocks/iso9660.c +++ b/shlibs/blkid/src/superblocks/iso9660.c @@ -82,8 +82,6 @@ static int probe_iso9660(blkid_probe pr, const struct blkid_idmag *mag) /* Joliet Extension */ off = ISO_VD_OFFSET; for (i = 0; i < ISO_VD_MAX; i++) { - uint8_t svd_label[64]; - iso = (struct iso_volume_descriptor *) blkid_probe_get_buffer(pr, off, @@ -100,7 +98,7 @@ static int probe_iso9660(blkid_probe pr, const struct blkid_idmag *mag) blkid_probe_set_utf8label(pr, iso->volume_id, - sizeof(svd_label), + sizeof(iso->volume_id), BLKID_ENC_UTF16BE); blkid_probe_set_version(pr, "Joliet Extension"); -- 2.39.5