summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc.c b/malloc.c
index aa833db..1a2be7a 100644
--- a/malloc.c
+++ b/malloc.c
@@ -82,7 +82,7 @@ word *dup_word_list(word *w) {
word *head, **eptr = &head;
while (w) {
- word *newwd = smalloc(sizeof(word));
+ word *newwd = mknew(word);
*newwd = *w; /* structure copy */
newwd->text = ustrdup(w->text);
if (w->alt)