Revert "[Tizen] security check : null termination check"
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 5 Nov 2018 08:19:31 +0000 (17:19 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 5 Nov 2018 08:19:31 +0000 (17:19 +0900)
This reverts commit 6e1367259e0fa4511fe198946629d43189fe9b19.

dali-toolkit/internal/builder/builder-filesystem.h [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index d7118dd..bbb77d7
@@ -46,9 +46,7 @@ inline std::string ExpandPath(const std::string &name)
 inline std::string ExePath(void)
 {
   char buf[256];
-  ssize_t len = readlink("/proc/self/exe", buf, sizeof(buf) - 1);
-  len = len > 0 ? len : 0;
-  buf[len] = '\0';
+  readlink("/proc/self/exe", buf, sizeof(buf));
   return std::string(buf);
 }