Remove the duplicated slash on the media path 30/254930/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/hotfix/20210314.220330 submit/tizen_6.0_hotfix/20210311.001652
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 10 Mar 2021 23:12:32 +0000 (08:12 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 10 Mar 2021 23:14:26 +0000 (08:14 +0900)
Change-Id: I764e79f1b1b7520b44ff011c87ec52a936c26202
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
app/obex-event-handler.c

index 1c3081d45fff369bca6c46c3a0b3260ec6ec5e2b..64a201c41b2cd7b9d6a2142bc2487aed5a6872b0 100644 (file)
@@ -343,7 +343,7 @@ static void __bt_move_media_file(char *file_path)
        retm_if(!BT_SHARE_DATA_DIR, "DATA dir is NULL");
 
        snprintf(media_file_path, BT_FILE_PATH_LEN_MAX, "%s/%s",
-               storage, file_path + strlen(BT_SHARE_DATA_DIR));
+               storage, file_path + strlen(BT_SHARE_DATA_DIR) + 1);
 
        INFO("Media file path: %s", media_file_path);