From 691d3389f7f8313a1b60dce862e16977ed838c16 Mon Sep 17 00:00:00 2001 From: krangelov Date: Mon, 6 Sep 2021 19:16:26 +0200 Subject: [PATCH] bugfix in PgfDBUnmarshaller::dtyp --- src/runtime/c/pgf/expr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/c/pgf/expr.cxx b/src/runtime/c/pgf/expr.cxx index 603739604..c3ee2e0cc 100644 --- a/src/runtime/c/pgf/expr.cxx +++ b/src/runtime/c/pgf/expr.cxx @@ -206,12 +206,12 @@ PgfType PgfDBUnmarshaller::dtyp(int n_hypos, PgfTypeHypo *hypos, ref hypo = vector_elem(ty->hypos,i); hypo->bind_type = hypos[i].bind_type; hypo->cid = PgfDB::malloc(sizeof(PgfText)+hypos[i].cid->size+1); - memcpy(&hypo->cid->text, hypos[i].cid, sizeof(PgfText)+hypos[i].cid->size+1); + memcpy(hypo->cid, hypos[i].cid, sizeof(PgfText)+hypos[i].cid->size+1); hypo->type = m->match_type(this, hypos[i].type); } ty->exprs = vector_new(n_exprs); for (size_t i = 0; i < n_exprs; i++) { - vector_elem(ty->exprs,i) = exprs[i]; + vector_elem(ty->exprs,i) = m->match_expr(this, exprs[i]); } return ty.as_object();