]> err.no Git - util-linux/commitdiff
blkid: fix xfs label
authorKarel Zak <kzak@redhat.com>
Tue, 23 Sep 2008 12:59:53 +0000 (14:59 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:21:45 +0000 (23:21 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/probers/xfs.c

index 47ca31a7e566647eb4e47b7db6455a9423404e0c..b4fe3c22d27368b17cae9131f34d92d820bdc55a 100644 (file)
@@ -50,7 +50,8 @@ static int probe_xfs(blkid_probe pr, const struct blkid_idmag *mag)
                return -1;
 
        if (strlen(xs->xs_fname))
-               blkid_probe_set_label(pr, xs->xs_fname, sizeof(xs->xs_fname));
+               blkid_probe_set_label(pr, (unsigned char *) xs->xs_fname,
+                               sizeof(xs->xs_fname));
        blkid_probe_set_uuid(pr, xs->xs_uuid);
        return 0;
 }