chiark / gitweb /
[PATCH] udev_volume_id: volume_id version 032
[elogind.git] / extras / volume_id / volume_id / jfs / jfs.c
index 3e7e9d6aea48d91f237fe5c385f9271beed8b48c..c9dce84ecb80c6ab19c48889dc721261783316c9 100644 (file)
@@ -60,7 +60,7 @@ int volume_id_probe_jfs(struct volume_id *id, __u64 off)
        if (js == NULL)
                return -1;
 
-       if (strncmp(js->magic, "JFS1", 4) != 0)
+       if (memcmp(js->magic, "JFS1", 4) != 0)
                return -1;
 
        volume_id_set_label_raw(id, js->label, 16);