aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-09-09 14:22:20 -0500
committerRob Landley <rob@landley.net>2018-09-09 14:22:20 -0500
commit28e36c9487bd4415d84952f74969bff34ffe665b (patch)
tree83d39661b2aa4d2d0877dd8cf4d3c69a9d71d5f8 /lib
parent288321ac86375450f5f57990201a56c385936323 (diff)
downloadtoybox-28e36c9487bd4415d84952f74969bff34ffe665b.tar.gz
Variable data needs to go at the end.
Diffstat (limited to 'lib')
-rw-r--r--lib/linestack.c2
1 files changed, 1 insertions, 1 deletions
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;