提交 6035ac71 编写于 作者: A apperception 提交者: Gitee

Signed-off-by: zhaochen <zhaochen69@huawei.com>

上级 28d278f0
......@@ -215,9 +215,7 @@ void PlayerliteCallback::OnRewindToComplete()
static int32_t FileCheck(const string &argv)
{
const char *ptr = argv.c_str();
if (strlen(ptr) < FILE_PATH_LEN &&
if (strlen(argv.c_str()) < sizeof(g_tagTestSample.filePath) &&
realpath(argv.c_str(), g_tagTestSample.filePath) == nullptr) {
printf("realpath input file failed, errno: %d!\n", errno);
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册