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

Fix directive output truncated writing 4 bytes into a region of size 1. #140

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

aganm
Copy link
Contributor

@aganm aganm commented Nov 6, 2023

Fixes an error that gcc gives me when -Wformat-truncation=2 is enabled.

utest.h:1135:36: error: ‘%s’ directive output truncated writing 4 bytes into a region of size 1 [-Werror=format-truncation=]
  1135 |     UTEST_SNPRINTF(name, name_size, "%s", name_part);
       |                                      ^~~~

@sheredom sheredom merged commit d9ce558 into sheredom:master Dec 7, 2023
49 checks passed
@sheredom
Copy link
Owner

sheredom commented Dec 7, 2023

Thanks again for your contributions!

@aganm aganm deleted the truncated branch December 7, 2023 13:07
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