Commit 2f10ef7d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Another insufficiently wide memset spotted by LLVM.

parent 2357a951
......@@ -67,7 +67,7 @@ smp_def_sign(const struct smp_sc *sc, struct smp_signctx *ctx,
AZ(off & 7); /* Alignment */
assert(strlen(id) < sizeof ctx->ss->ident);
memset(ctx, 0, sizeof ctx);
memset(ctx, 0, sizeof *ctx);
ctx->ss = (void*)(sc->base + off);
ctx->unique = sc->unique;
ctx->id = id;
......
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