=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/awk/parse.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/usr.bin/awk/parse.c 2020/06/10 21:02:33 1.8 +++ src/usr.bin/awk/parse.c 2020/06/10 21:03:36 1.9 @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.8 2020/06/10 21:02:33 millert Exp $ */ +/* $OpenBSD: parse.c,v 1.9 2020/06/10 21:03:36 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -34,7 +34,7 @@ { Node *x; - x = (Node *) malloc(sizeof(Node) + (n-1)*sizeof(Node *)); + x = malloc(sizeof(*x) + (n-1) * sizeof(x)); if (x == NULL) FATAL("out of space in nodealloc"); x->nnext = NULL;