diff --git a/framework/unit_registry.c b/framework/unit_registry.c index bfe5be9..20c94d8 100644 --- a/framework/unit_registry.c +++ b/framework/unit_registry.c @@ -276,7 +276,7 @@ bool ureg_instantiate_by_ini(const char *restrict driver_name, const char *restr char *name = NULL; if (delim != NULL) { // not last - name = strndup_ck(p, delim - p); + name = strndup_ck(p, delim - p + 1); p = delim + 1; } else { // last name