diff options
| author | John Crispin | 2013-07-22 06:17:58 +0000 |
|---|---|---|
| committer | John Crispin | 2013-07-22 06:17:58 +0000 |
| commit | 2946fea87707b5e3c22e4271c5168fb7b9b9ef9d (patch) | |
| tree | 406f525e4785548b466af8dea2e7f3adecd3240a | |
| parent | 0828095b1600fe19dc1112fbcde84a3cbfa8b2b5 (diff) | |
| download | ubox-2946fea87707b5e3c22e4271c5168fb7b9b9ef9d.tar.gz | |
fix m5sum / uuid of squshfs devices
Signed-off-by: John Crispin <blogic@openwrt.org>
| -rw-r--r-- | libblkid-tiny/squashfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libblkid-tiny/squashfs.c b/libblkid-tiny/squashfs.c index d2033b6..9d66769 100644 --- a/libblkid-tiny/squashfs.c +++ b/libblkid-tiny/squashfs.c @@ -43,7 +43,7 @@ struct squashfs_super_block { static int probe_squashfs(blkid_probe pr, const struct blkid_idmag *mag) { md5_ctx_t ctx = { 0 }; - uint8_t md5[4]; + uint32_t md5[4]; struct squashfs_super_block *sq; sq = blkid_probe_get_sb(pr, mag, struct squashfs_super_block); @@ -62,7 +62,7 @@ static int probe_squashfs(blkid_probe pr, const struct blkid_idmag *mag) md5_begin(&ctx); md5_hash(sq, sizeof(*sq), &ctx); md5_end(&md5, &ctx); - blkid_probe_sprintf_uuid(pr, NULL, 4, "%02x%02x-%02x%02x", + blkid_probe_sprintf_uuid(pr, NULL, 4, "%08x-%08x-%08x-%08x", md5[3], md5[2], md5[1], md5[0]); return 0; } |