From 9d4a21ac648ee710eb0fa96e08e8883ae761eb8f Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 23 May 2019 10:29:12 +0200 Subject: [PATCH] :bug Fix compiler_open --- src/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0