diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-05-25 03:35:18 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-05-25 03:35:18 +0200 |
commit | a3b836c6c22614d2aa746d89ddfaa6888e47691f (patch) | |
tree | addf1bdb6d7918839671bae3542c776613281374 /extras/volume_id/lib/iso9660.c | |
parent | 52e1af940af52a4f1c2f512eef82249aa081535e (diff) |
volume_id: terminate overlong label strings
Diffstat (limited to 'extras/volume_id/lib/iso9660.c')
-rw-r--r-- | extras/volume_id/lib/iso9660.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/volume_id/lib/iso9660.c b/extras/volume_id/lib/iso9660.c index 227641e42a..1d8bdff878 100644 --- a/extras/volume_id/lib/iso9660.c +++ b/extras/volume_id/lib/iso9660.c @@ -91,7 +91,7 @@ int volume_id_probe_iso9660(struct volume_id *id, uint64_t off, uint64_t size) memcmp(is->escape_sequences, "%/C", 3) == 0|| memcmp(is->escape_sequences, "%/E", 3) == 0) { dbg("Joliet extension found"); - volume_id_set_unicode16((char *)svd_label, sizeof(svd_label), is->volume_id, BE, 32); + volume_id_set_unicode16(svd_label, sizeof(svd_label), is->volume_id, BE, 32); if (memcmp(id->label, svd_label, 16) == 0) { dbg("SVD label is identical, use the possibly longer PVD one"); break; |