From 28e36c9487bd4415d84952f74969bff34ffe665b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 9 Sep 2018 14:22:20 -0500 Subject: Variable data needs to go at the end. --- lib/linestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/linestack.c b/lib/linestack.c index b533c1f8..99807ccf 100644 --- a/lib/linestack.c +++ b/lib/linestack.c @@ -43,8 +43,8 @@ void linestack_insert(struct linestack **lls, long pos, char *line, long len) // This allocates enough memory for the linestack to have one ptr_len. // (Even if a compiler adds gratuitous padidng that just makes it bigger.) struct { - struct linestack ls; struct ptr_len pl; + struct linestack ls; } ls; ls.ls.len = ls.ls.max = 1; -- cgit v1.2.3