aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-16 04:45:55 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-16 04:45:55 +0100
commit09ac3e362368800a46ddb9d47996ad4929e0efa0 (patch)
tree0aa66127f3169554a455b36958e6258852d631a6 /src
parentmds-kbdc: support arrays (diff)
downloadmds-09ac3e362368800a46ddb9d47996ad4929e0efa0.tar.gz
mds-09ac3e362368800a46ddb9d47996ad4929e0efa0.tar.bz2
mds-09ac3e362368800a46ddb9d47996ad4929e0efa0.tar.xz
mds-kbdc: fix let without array
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-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;