From: Karel Zak Date: Tue, 22 Sep 2009 09:53:07 +0000 (+0200) Subject: libblkid: fix blkid_probe_set_utf8label() call for Joliet X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dcf11a5142af5332f7536a3f33ede581d46fb96;p=util-linux libblkid: fix blkid_probe_set_utf8label() call for Joliet Signed-off-by: Karel Zak --- 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");