libscpi/src/units.c
@@ -495,7 +495,7 @@ if (value->special) { if (SCPI_ChoiceToName(special, value->content.tag, &type)) { strncpy(str, type, len); memcpy(str, type, len); result = SCPIDEFINE_strnlen(str, len - 1); str[result] = '\0'; return result;