未验证 提交 06e4c82b 编写于 作者: 周礼亭 提交者: Gitee

Signed-off-by: zhouliting <zhouliting5@huawei.com>

上级 f2e814a3
...@@ -72,7 +72,7 @@ void BinderTraceTest::TearDownTestCase() ...@@ -72,7 +72,7 @@ void BinderTraceTest::TearDownTestCase()
static std::string HitraceLongToString(unsigned long data) static std::string HitraceLongToString(unsigned long data)
{ {
std::string result; std::string result;
constexpr int BUFFER_SIZE = 16; constexpr int BUFFER_SIZE = 21;
char str[BUFFER_SIZE] = {0}; char str[BUFFER_SIZE] = {0};
if (sprintf_s(str, sizeof(str), "%lu", data) <= 0) { if (sprintf_s(str, sizeof(str), "%lu", data) <= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册