Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
scemama committed Dec 5, 2024
1 parent 72619db commit cd369bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates_front/templator_front.org
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,9 @@ trexio_string_of_error_f (const trexio_exit_code error, char result[<<MAX_STRING
{
const char* pSrc = trexio_string_of_error(error);
size_t sizeCp = strlen(pSrc);
if (sizeCp > MAX_STRING_LENGTH) sizeCp = MAX_STRING_LENGTH;
if (sizeCp > <<MAX_STRING_LENGTH()>>) {
sizeCp = <<MAX_STRING_LENGTH()>>;
}
memcpy(result, pSrc, sizeCp);
result[sizeCp] = '\0';
}
Expand Down

0 comments on commit cd369bd

Please sign in to comment.