]> err.no Git - util-linux/commitdiff
libblkid: fix blkid_probe_set_utf8label() call for Joliet
authorKarel Zak <kzak@redhat.com>
Tue, 22 Sep 2009 09:53:07 +0000 (11:53 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 2 Oct 2009 18:21:36 +0000 (20:21 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/probers/iso9660.c

index ca53e3ae444f520102c62dcc56d4f808d86e4170..1ea704c1923a4f492a8185b6e786316c9f09388b 100644 (file)
@@ -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");