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. #26

Merged
merged 1 commit into from
Dec 5, 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.

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

@sheredom sheredom merged commit 9c9a3ff into sheredom:master Dec 5, 2023
45 checks passed
@aganm aganm deleted the truncated branch December 7, 2023 13:12
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.

2 participants