-
-
Notifications
You must be signed in to change notification settings - Fork 6
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 format nonliteral #449
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #449 +/- ##
===========================================
+ Coverage 96.72% 96.74% +0.01%
===========================================
Files 213 213
Lines 10683 10744 +61
===========================================
+ Hits 10333 10394 +61
Misses 350 350
Continue to review full report at Codecov.
|
test/unit_string_tests.cpp
Outdated
} | ||
IUTEST(UnitStringTest, InvalidVsnprintf) | ||
{ | ||
IUTEST_EXPECT_EQ(-1, test_iu_vsnprintf(NULL, 1, "test")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
If you can, use sizeof(NULL) instead of 1 as the 2nd arg to snprintf. [runtime/printf] [3]
test/unit_string_tests.cpp
Outdated
} | ||
IUTEST(UnitStringTest, InvalidVsnprintf) | ||
{ | ||
IUTEST_EXPECT_EQ(-1, test_iu_vsnprintf(NULL, 1, "test")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] If you can, use sizeof(NULL) instead of 1 as the 2nd arg to snprintf. (view)
Rule | Confidence |
---|---|
runtime/printf |
3 |
You can close this issue if no need to fix it. Learn more.
No description provided.