Commit 4d96d154 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make Coverity happy.

parent 2ed0ff29
......@@ -200,7 +200,7 @@ smp_mgt_init(struct stevedore *parent, int ac, char * const *av)
/* Try to determine correct mmap address */
i = read(sc->fd, &sgn, sizeof sgn);
assert(i == sizeof sgn);
if (!strcmp(sgn.ident, "SILO"))
if (!memcmp(sgn.ident, "SILO", 5))
target = (void*)(uintptr_t)sgn.mapped;
else
target = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment