diff --git a/src/templates_front/templator_front.org b/src/templates_front/templator_front.org index e1f1122..59b2c78 100644 --- a/src/templates_front/templator_front.org +++ b/src/templates_front/templator_front.org @@ -842,7 +842,9 @@ trexio_string_of_error_f (const trexio_exit_code error, char result[< MAX_STRING_LENGTH) sizeCp = MAX_STRING_LENGTH; + if (sizeCp > <>) { + sizeCp = <>; + } memcpy(result, pSrc, sizeCp); result[sizeCp] = '\0'; }