From: Mark Wooding Date: Thu, 26 May 2016 08:26:09 +0000 (+0100) Subject: math/mpx-mul4-test.c: Set `dstr' length correctly in conversion function. X-Git-Tag: 2.3.1~12 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/e2ddc3d86f5c21a34ddb00f2195c5d299c9ec04c?ds=sidebyside;hp=d0c288ad14a950b519958db7a6dcec17694c5bf1 math/mpx-mul4-test.c: Set `dstr' length correctly in conversion function. (cherry picked from commit b00264d9e2ac2f2be2808e7ad663c35115519504) --- diff --git a/math/mpx-mul4-test.c b/math/mpx-mul4-test.c index 355c7ceb..5d5b4d58 100644 --- a/math/mpx-mul4-test.c +++ b/math/mpx-mul4-test.c @@ -116,7 +116,7 @@ TESTOPS(DECLSTUB) \ type_hex.cvt(buf, &dd); \ if (dd.len != N(x->w)*nby) die(1, "invalid length for " #ty); \ - dstr_ensure(d, sizeof(*x)); \ + dstr_ensure(d, sizeof(*x)); d->len = sizeof(*x); \ x = (ty *)d->buf; p = (const octet *)dd.buf; \ for (i = 0; i < N(x->w); i++) { x->w[i] = ld(p); p += nby; } \ dstr_destroy(&dd); \