summaryrefslogtreecommitdiffstats
path: root/package/config/symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/config/symbol.c')
-rw-r--r--package/config/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/config/symbol.c b/package/config/symbol.c
index c0efe102d..af6e9f3de 100644
--- a/package/config/symbol.c
+++ b/package/config/symbol.c
@@ -875,7 +875,7 @@ const char *sym_expand_string_value(const char *in)
symval = sym_get_string_value(sym);
}
- newlen = strlen(res) + strlen(symval) + strlen(src);
+ newlen = strlen(res) + strlen(symval) + strlen(src) + 1;
if (newlen > reslen) {
reslen = newlen;
res = realloc(res, reslen);