From: fennecdjay Date: Thu, 23 May 2019 08:29:12 +0000 (+0200) Subject: :bug Fix compiler_open X-Git-Tag: nightly~2447 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9d4a21ac648ee710eb0fa96e08e8883ae761eb8f;p=gwion.git :bug Fix compiler_open --- diff --git a/src/compile.c b/src/compile.c index 104206a3..ce19f335 100644 --- a/src/compile.c +++ b/src/compile.c @@ -70,7 +70,7 @@ static m_bool _compiler_open(struct Compiler* c) { } static inline m_bool compiler_open(MemPool p, struct Compiler* c) { - char name[strlen(c->name)]; + char name[strlen(c->name) + 1]; strcpy(name, c->name); if(_compiler_open(c) < 0) { compiler_error(p, c);