diff options
-rw-r--r-- | sys/geom/geom_bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 562c78a..41a141c 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -620,7 +620,7 @@ g_bsd_taste(struct g_class *mp, struct g_provider *pp, int flags) MD5Final(ms->labelsum, &md5sum); error = g_getattr("BSD::labelsum", cp, &hash); - if (!error && !strncmp(ms->labelsum, hash, sizeof(hash))) + if (!error && !bcmp(ms->labelsum, hash, sizeof(hash))) break; /* |