diff options
Diffstat (limited to 'lisc')
-rw-r--r-- | lisc/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisc/util.c b/lisc/util.c index c1bfa86..e62fd1a 100644 --- a/lisc/util.c +++ b/lisc/util.c @@ -70,7 +70,8 @@ void idup(Ins **pd, Ins *s, ulong n) { free(*pd); - memcpy(*pd = alloc(n * sizeof(Ins)), s, n * sizeof(Ins)); + *pd = alloc(n * sizeof(Ins)); + memcpy(*pd, s, n * sizeof(Ins)); } Ins * |