From cd369bd1875a46e7da73457a24a8fad09d915a1e Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 5 Dec 2024 17:32:24 +0100 Subject: [PATCH] Fix previous commit --- src/templates_front/templator_front.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'; }