Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev textual title truncation #78

Merged
merged 3 commits into from
Jan 27, 2023
Merged

Conversation

chcmedeiros
Copy link
Collaborator

No description provided.

app/src/parser.c Outdated
if (strlen(val)+1 > OUTPUT_HANDLER_SIZE) {
return parser_unexpected_value;
//Translate output, cpy to tmp to assure it ends in \0
MEMZERO(ctx->tx_obj->tx_text.tmpBuffer, sizeof(ctx->tx_obj->tx_text.tmpBuffer));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you might define tmpLen = sizeof(ctx->tx_obj->tx_text.tmpBuffer) and then use the auxiliary variables instead of this long ctx->tx_obj..... to refer to the temporal buffer ;)

@chcmedeiros chcmedeiros merged commit 157b1fa into main Jan 27, 2023
@chcmedeiros chcmedeiros deleted the dev_textual_title_truncation branch January 27, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants