diff options
author | 2001-09-17 08:11:13 +0000 | |
---|---|---|
committer | 2001-09-17 08:11:13 +0000 | |
commit | ab5eb8f0031dd353eb6d7c5a51c534c390aff072 (patch) | |
tree | a64b06a1e60994d31a52bd94f25f154bfa8a8227 /usr.bin/m4/main.c | |
parent | Scary interaction (diff) | |
download | wireguard-openbsd-ab5eb8f0031dd353eb6d7c5a51c534c390aff072.tar.xz wireguard-openbsd-ab5eb8f0031dd353eb6d7c5a51c534c390aff072.zip |
Remove STATIC memory optimization. It's buggy (see regression test trip)
Diffstat (limited to 'usr.bin/m4/main.c')
-rw-r--r-- | usr.bin/m4/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c index c0687e9c5f7..ab3cd5b2f5e 100644 --- a/usr.bin/m4/main.c +++ b/usr.bin/m4/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.41 2001/09/16 21:12:08 espie Exp $ */ +/* $OpenBSD: main.c,v 1.42 2001/09/17 08:11:13 espie Exp $ */ /* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.41 2001/09/16 21:12:08 espie Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.42 2001/09/17 08:11:13 espie Exp $"; #endif #endif /* not lint */ @@ -554,10 +554,10 @@ initkwds() p = (ndptr) xalloc(sizeof(struct ndblock)); p->nxtptr = hashtab[h % HASHSIZE]; hashtab[h % HASHSIZE] = p; - p->name = keywrds[i].knam; + p->name = xstrdup(keywrds[i].knam); p->defn = null; p->hv = h; - p->type = (keywrds[i].ktyp & TYPEMASK) | STATIC; + p->type = keywrds[i].ktyp & TYPEMASK; if ((keywrds[i].ktyp & NOARGS) == 0) p->type |= NEEDARGS; } |