about summary refs log tree commit diff stats
path: root/src/tlv.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-25 09:27:44 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-25 09:27:44 -0800
commit6af91eb0d2ef45fea1a6f35cd6aa1fa2b7435401 (patch)
tree43f9cded1b79c1d2bbf23693391496632acd7eab /src/tlv.c
parent76677dbd6f1dd7ba07d323ef2191f7f972856908 (diff)
downloadteliva-6af91eb0d2ef45fea1a6f35cd6aa1fa2b7435401.tar.gz
tlv format for transient editor state
Stop interpreting arbitrary Lua code when loading editor state. We don't
need that power or security risk.
Diffstat (limited to 'src/tlv.c')
-rw-r--r--src/tlv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tlv.c b/src/tlv.c
index 32a8d31..cca8f6e 100644
--- a/src/tlv.c
+++ b/src/tlv.c
@@ -50,7 +50,7 @@ static void teliva_load_multiline_string(lua_State* L, FILE* in, char* line, int
 }
 
 /* leave a single table on stack containing the next top-level definition from the file */
-static void teliva_load_definition(lua_State* L, FILE* in) {
+void teliva_load_definition(lua_State* L, FILE* in) {
   lua_newtable(L);
   int def_idx = lua_gettop(L);
   char line[1024] = {'\0'};