From 8daede9a70fce9ca6620d961d91540c8d959e9bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 14 Sep 2020 11:30:54 +0200 Subject: [PATCH] :bug: Fix op_parent --- src/parse/operator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.43.0