summaryrefslogtreecommitdiff
path: root/usr.bin/m4/misc.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-12-21 09:33:13 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-12-21 09:33:13 +0000
commit3f3a0b87392dccc22ee020d4b4cf3f3ffeea51ef (patch)
treee8e3a32ac68b77da106728b51365a30ace350903 /usr.bin/m4/misc.c
parent602b3334af7dcc5a40b54590ec6b5775f295d91d (diff)
fix test-redef2:
- introduce explicit STORAGE classes for the shadow stack entries - delay freeing definitions if they're in-use, keep them in a simple array. okay millert@
Diffstat (limited to 'usr.bin/m4/misc.c')
-rw-r--r--usr.bin/m4/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c
index 556ecd637b9..122cf0b3dc5 100644
--- a/usr.bin/m4/misc.c
+++ b/usr.bin/m4/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.44 2014/05/12 19:11:19 espie Exp $ */
+/* $OpenBSD: misc.c,v 1.45 2014/12/21 09:33:12 espie Exp $ */
/* $NetBSD: misc.c,v 1.6 1995/09/28 05:37:41 tls Exp $ */
/*
@@ -184,7 +184,7 @@ enlarge_strspace()
errx(1, "string space overflow");
memcpy(newstrspace, strspace, strsize/2);
for (i = 0; i <= sp; i++)
- if (sstack[i])
+ if (sstack[i] == STORAGE_STRSPACE)
mstack[i].sstr = (mstack[i].sstr - strspace)
+ newstrspace;
ep = (ep-strspace) + newstrspace;