Flexelinting: Avoid loss of precision warning

parent 6f218668
......@@ -186,7 +186,8 @@ match(VRT_CTX, const vre_t *vre, VCL_STRING subject, struct vmod_priv *task,
ov->subject = subject;
memset(ov->ovector, -1, sizeof(ov->ovector));
cp = s * 2 * sizeof(*nov);
cp = s;
cp *= 2 * sizeof(*nov);
assert(cp <= sizeof(ov->ovector));
memcpy(ov->ovector, nov, cp);
return 1;
......
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