diff options
| author | Rob Landley <rob@landley.net> | 2018-09-09 14:22:20 -0500 |
|---|---|---|
| committer | Rob Landley <rob@landley.net> | 2018-09-09 14:22:20 -0500 |
| commit | 28e36c9487bd4415d84952f74969bff34ffe665b (patch) | |
| tree | 83d39661b2aa4d2d0877dd8cf4d3c69a9d71d5f8 | |
| parent | 288321ac86375450f5f57990201a56c385936323 (diff) | |
| download | toybox-28e36c9487bd4415d84952f74969bff34ffe665b.tar.gz | |
Variable data needs to go at the end.
| -rw-r--r-- | lib/linestack.c | 2 |
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; |
