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

Ignore negative precision * args #10

Closed
charlesnicholson opened this issue Jul 5, 2019 · 0 comments · Fixed by #23
Closed

Ignore negative precision * args #10

charlesnicholson opened this issue Jul 5, 2019 · 0 comments · Fixed by #23
Assignees
Labels
enhancement New feature or request

Comments

@charlesnicholson
Copy link
Owner

Negative precision * args should be ignored:

char buf[32];
npf_snprintf(buf, sizeof(buf), "%.*i", -100, 1);
// buf should be "1"
@charlesnicholson charlesnicholson added the enhancement New feature or request label Jul 5, 2019
@charlesnicholson charlesnicholson self-assigned this Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant