From 09ac3e362368800a46ddb9d47996ad4929e0efa0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Nov 2014 04:45:55 +0100 Subject: mds-kbdc: fix let without array MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/make-tree.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mds-kbdc') 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; -- cgit v1.2.3-70-g09d2