X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=extras%2Fvolume_id%2Fvolume_id%2Fudf%2Fudf.c;h=ff23b310399b2a6cc010dc1d9b5ad9b8595dd4b1;hp=b91e3cce4e6a3c33e482b49ed26d59945ec4fa04;hb=7979e3d4b7c56acee2fe0e9a9fefb3fe0d83771e;hpb=c033fd9f01b3cd5771875069c26d3af06969a300 diff --git a/extras/volume_id/volume_id/udf/udf.c b/extras/volume_id/volume_id/udf/udf.c index b91e3cce4..ff23b3103 100644 --- a/extras/volume_id/volume_id/udf/udf.c +++ b/extras/volume_id/volume_id/udf/udf.c @@ -87,19 +87,19 @@ int volume_id_probe_udf(struct volume_id *id, __u64 off) if (vsd == NULL) return -1; - if (strncmp(vsd->id, "NSR02", 5) == 0) + if (memcmp(vsd->id, "NSR02", 5) == 0) goto blocksize; - if (strncmp(vsd->id, "NSR03", 5) == 0) + if (memcmp(vsd->id, "NSR03", 5) == 0) goto blocksize; - if (strncmp(vsd->id, "BEA01", 5) == 0) + if (memcmp(vsd->id, "BEA01", 5) == 0) goto blocksize; - if (strncmp(vsd->id, "BOOT2", 5) == 0) + if (memcmp(vsd->id, "BOOT2", 5) == 0) goto blocksize; - if (strncmp(vsd->id, "CD001", 5) == 0) + if (memcmp(vsd->id, "CD001", 5) == 0) goto blocksize; - if (strncmp(vsd->id, "CDW02", 5) == 0) + if (memcmp(vsd->id, "CDW02", 5) == 0) goto blocksize; - if (strncmp(vsd->id, "TEA03", 5) == 0) + if (memcmp(vsd->id, "TEA03", 5) == 0) goto blocksize; return -1; @@ -127,9 +127,9 @@ nsr: if (vsd->id[0] == '\0') return -1; - if (strncmp(vsd->id, "NSR02", 5) == 0) + if (memcmp(vsd->id, "NSR02", 5) == 0) goto anchor; - if (strncmp(vsd->id, "NSR03", 5) == 0) + if (memcmp(vsd->id, "NSR03", 5) == 0) goto anchor; } return -1;