aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.c b/init.c
index 0e890c0..aadf951 100644
--- a/init.c
+++ b/init.c
@@ -251,7 +251,7 @@ parseinit(struct scope *s, struct type *t)
break;
expr = expr->base;
if (t->incomplete)
- updatearray(t, expr->string.size);
+ updatearray(t, expr->string.size - 1);
goto add;
case TYPESTRUCT:
case TYPEUNION: