From 6035ac7155672a844030c75b79a3f6c9f5d1d23a Mon Sep 17 00:00:00 2001 From: apperception Date: Fri, 22 Oct 2021 09:42:31 +0000 Subject: [PATCH] Signed-off-by: zhaochen --- .../player_native/src/ActsMediaPlayerAudioTest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerAudioTest.cpp b/multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerAudioTest.cpp index c53e29840..e946a43f3 100644 --- a/multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerAudioTest.cpp +++ b/multimedia_lite/media_lite_posix/player_native/src/ActsMediaPlayerAudioTest.cpp @@ -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; -- GitLab