From 6dcf11a5142af5332f7536a3f33ede581d46fb96 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/probers/iso9660.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shlibs/blkid/src/probers/iso9660.c b/shlibs/blkid/src/probers/iso9660.c index ca53e3ae..1ea704c1 100644 --- a/shlibs/blkid/src/probers/iso9660.c +++ b/shlibs/blkid/src/probers/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