提交 fb4b6dc6 编写于 作者: Z zhong_ning

fix code style

Signed-off-by: Nzhong_ning <zhong_ning@hoperun.com>
上级 72a0c1ee
......@@ -13,9 +13,9 @@
* limitations under the License.
*/
#include <dirent.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <sys/stat.h>
#include <sys/types.h>
......@@ -516,7 +516,7 @@ static char* ReadFileToBuf()
break;
}
buffer = static_cast<char*>(malloc((size_t)fileStat.st_size + 1));
buffer = static_cast<char*>(malloc(static_cast<size_t>(fileStat.st_size) + 1));
if (buffer == nullptr) {
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册