diff options
-rw-r--r-- | external/gard/gard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/external/gard/gard.c b/external/gard/gard.c index c70fa2a..5a57415 100644 --- a/external/gard/gard.c +++ b/external/gard/gard.c @@ -325,7 +325,7 @@ int parse_path(const char *str, struct entity_path *parsed) parsed->path_elements[unit_count].target_type = unit_id; /* now parse the instance # */ - len = strlen(chip_units[unit_id].desc); + len = strlen(target_type_to_str(unit_id)); instance = strtol(str + len, &end, 10); if (!isdigit(*(str + len))) { |