未验证 提交 a2e7a919 编写于 作者: J JUN 提交者: GitHub

Modify data type in CommonUtil.cpp (#1996)

Signed-off-by: NJUN <gujun720@foxmail.com>
上级 315dac33
......@@ -182,7 +182,7 @@ std::string
CommonUtil::GetExePath() {
const size_t buf_len = 1024;
char buf[buf_len];
size_t cnt = readlink("/proc/self/exe", buf, buf_len);
ssize_t cnt = readlink("/proc/self/exe", buf, buf_len);
fiu_do_on("CommonUtil.GetExePath.readlink_fail", cnt = -1);
if (cnt < 0 || cnt >= buf_len) {
return "";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册