summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fstyp/geli.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/fstyp/geli.c')
-rw-r--r--usr.sbin/fstyp/geli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/fstyp/geli.c b/usr.sbin/fstyp/geli.c
index a6ce740e..7f6d9a5 100644
--- a/usr.sbin/fstyp/geli.c
+++ b/usr.sbin/fstyp/geli.c
@@ -61,7 +61,7 @@ fstyp_geli(FILE *fp, char *label __unused, size_t labelsize __unused)
if (error)
goto gelierr;
- if (strncmp(md.md_magic, "GEOM::ELI", 9) == 0) {
+ if (strcmp(md.md_magic, G_ELI_MAGIC) == 0) {
free(buf);
return (0);
}
OpenPOWER on IntegriCloud