From: Jérémie Astor Date: Mon, 14 Sep 2020 09:30:54 +0000 (+0200) Subject: :bug: Fix op_parent X-Git-Tag: nightly~1326 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=8daede9a70fce9ca6620d961d91540c8d959e9bf;p=gwion.git :bug: Fix op_parent --- diff --git a/src/parse/operator.c b/src/parse/operator.c index 6e944279..3ced6b22 100644 --- a/src/parse/operator.c +++ b/src/parse/operator.c @@ -37,7 +37,7 @@ ANN void free_op_map(Map map, struct Gwion_ *gwion) { ANN static Type op_parent(const Env env, const Type t) { if(GET_FLAG(t, template) && GET_FLAG(t, ref)) { const Type type = typedef_base(t); - char name[strlen(type->name)]; + char name[strlen(type->name) + 1]; strcpy(name, type->name); const m_str post = strrchr(name, ':'); *post = '\0';