Fixed the crash issue when the file is received 33/225433/1
authorInHong Han <inhong1.han@samsung.com>
Thu, 20 Feb 2020 02:03:35 +0000 (11:03 +0900)
committerInHong Han <inhong1.han@samsung.com>
Thu, 20 Feb 2020 02:03:35 +0000 (11:03 +0900)
Change-Id: I1bd033d3cda4b16e537842929b6eccd035678b9d

receiver/src/ft.cpp

index c9af50d..b073de7 100644 (file)
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <string>
 #include <unistd.h>
+#include <linux/limits.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <pwd.h>
@@ -143,7 +144,7 @@ static void __set_file_transfer_cb(sap_file_transaction_h file_socket)
 void accept_file()
 {
        int ret;
-       char file_path[100];
+       char file_path[PATH_MAX];
        char *data_path = NULL;
 
        data_path = app_get_shared_data_path();