aboutsummaryrefslogtreecommitdiff
path: root/rega.c
diff options
context:
space:
mode:
Diffstat (limited to 'rega.c')
-rw-r--r--rega.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rega.c b/rega.c
index 619b0e2..f087f3c 100644
--- a/rega.c
+++ b/rega.c
@@ -50,8 +50,11 @@ sethint(int t, int r)
static void
rcopy(RMap *ma, RMap *mb)
{
- memcpy(ma, mb, sizeof *ma);
+ memcpy(ma->t, mb->t, sizeof ma->t);
+ memcpy(ma->r, mb->r, sizeof ma->r);
+ memcpy(ma->w, mb->w, sizeof ma->w);
bscopy(ma->b, mb->b);
+ ma->n = mb->n;
}
static int