From b00264d9e2ac2f2be2808e7ad663c35115519504 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 26 May 2016 09:26:09 +0100 Subject: [PATCH] math/mpx-mul4-test.c: Set `dstr' length correctly in conversion function. --- math/mpx-mul4-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ -- 2.11.0