summaryrefslogtreecommitdiffstats
path: root/usr.bin/awk/parse.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2020-12-09 20:00:11 +0000
committermillert <millert@openbsd.org>2020-12-09 20:00:11 +0000
commit483fa115c6db86511640cce42006bfb50a67a2bf (patch)
treec1299add29be6b38417087069741ff9264be5ab0 /usr.bin/awk/parse.c
parentAdd kernel-only per-thread kqueue & helpers to initialize and free it. (diff)
downloadwireguard-openbsd-483fa115c6db86511640cce42006bfb50a67a2bf.tar.xz
wireguard-openbsd-483fa115c6db86511640cce42006bfb50a67a2bf.zip
Update awk to December 8, 2020 version.
Prevents strings beginning with "inf" or "nan" from being interpreted as infinity or not-a-number respectively which still parsing "inf" and "nan" (with or without a leading sign) correctly.
Diffstat (limited to 'usr.bin/awk/parse.c')
-rw-r--r--usr.bin/awk/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/awk/parse.c b/usr.bin/awk/parse.c
index 8b14f46f4e9..abd5c4fc6fc 100644
--- a/usr.bin/awk/parse.c
+++ b/usr.bin/awk/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.12 2020/07/30 17:45:44 millert Exp $ */
+/* $OpenBSD: parse.c,v 1.13 2020/12/09 20:00:11 millert Exp $ */
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved
@@ -34,7 +34,7 @@ Node *nodealloc(int n)
{
Node *x;
- x = malloc(sizeof(*x) + (n-1) * sizeof(x));
+ x = (Node *) malloc(sizeof(*x) + (n-1) * sizeof(x));
if (x == NULL)
FATAL("out of space in nodealloc");
x->nnext = NULL;