aboutsummaryrefslogtreecommitdiffstats
path: root/toml.c
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-28 11:37:18 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-28 11:37:18 -0400
commitba1170ac0504fbe7cf96a9d6515477ed8de1b29d (patch)
tree3ab6d0e462e6049d2e264968dfc7df533465fac7 /toml.c
parent27f637904876fac0f8e69b6829591ea0a7689bb2 (diff)
downloadvolute-ba1170ac0504fbe7cf96a9d6515477ed8de1b29d.zip
toml-c c99 compliance
Diffstat (limited to 'toml.c')
-rw-r--r--toml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toml.c b/toml.c
index 7f3ac61..c5c61d6 100644
--- a/toml.c
+++ b/toml.c
@@ -1913,7 +1913,7 @@ int toml_value_string(toml_unparsed_t src, char** ret, int* len) {
toml_value_t toml_array_string(const toml_array_t* arr, int idx) {
toml_value_t ret;
memset(&ret, 0, sizeof(ret));
- ret.ok = (toml_value_string(toml_array_unparsed(arr, idx), &ret.u.s, &ret.u.sl) == 0);
+ ret.ok = (toml_value_string(toml_array_unparsed(arr, idx), &ret.u.s.s, &ret.u.s.len) == 0);
return ret;
}
@@ -1950,7 +1950,7 @@ toml_value_t toml_table_string(const toml_table_t* tbl, const char* key) {
memset(&ret, 0, sizeof(ret));
toml_unparsed_t raw = toml_table_unparsed(tbl, key);
if (raw)
- ret.ok = (toml_value_string(raw, &ret.u.s, &ret.u.sl) == 0);
+ ret.ok = (toml_value_string(raw, &ret.u.s.s, &ret.u.s.len) == 0);
return ret;
}