]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: fix typo
authorKarel Zak <kzak@redhat.com>
Fri, 24 Mar 2017 10:46:33 +0000 (11:46 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Mar 2017 10:46:33 +0000 (11:46 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/hfs.c

index ef746d4e2934550ad26e462ca31017337c3b1d00..c2344114a8f1a0a0e5e05ff5194ca0e95bc64b94 100644 (file)
@@ -244,6 +244,7 @@ static int probe_hfsplus(blkid_probe pr, const struct blkid_idmag *mag)
        leaf_node_head = be32_to_cpu(bnode->leaf_head);
        leaf_node_size = be16_to_cpu(bnode->node_size);
        leaf_node_count = be32_to_cpu(bnode->leaf_count);
+
        if (leaf_node_size < sizeof(struct hfsplus_bnode_descriptor) +
            sizeof(struct hfsplus_catalog_key) || leaf_node_count == 0)
                return 0;
@@ -286,7 +287,7 @@ static int probe_hfsplus(blkid_probe pr, const struct blkid_idmag *mag)
                &buf[sizeof(struct hfsplus_bnode_descriptor)];
 
        if (be32_to_cpu(key->parent_id) != HFSPLUS_POR_CNID ||
-           be16_to_cpu(key->unicode_len > 255))
+           be16_to_cpu(key->unicode_len) > 255)
                return 0;
 
        blkid_probe_set_utf8label(pr, key->unicode,