aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/make-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-kbdc/make-tree.c')
-rw-r--r--src/mds-kbdc/make-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mds-kbdc/make-tree.c b/src/mds-kbdc/make-tree.c
index d00a05a..d32f222 100644
--- a/src/mds-kbdc/make-tree.c
+++ b/src/mds-kbdc/make-tree.c
@@ -676,6 +676,9 @@ int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict resu
{
#define node subnode
NEW_NODE(string, STRING);
+ end = line;
+ prev_end_char = *end;
+ *end = '\0';
CHARS(string);
#undef node
node->value = (mds_kbdc_tree_t*)subnode;