projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "[Tizen] Modify codes for Dali Windows backend"
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
builder
/
builder-filesystem.h
diff --git
a/dali-toolkit/internal/builder/builder-filesystem.h
b/dali-toolkit/internal/builder/builder-filesystem.h
old mode 100644
(file)
new mode 100755
(executable)
index
bbb77d7
..
d7118dd
--- a/
dali-toolkit/internal/builder/builder-filesystem.h
+++ b/
dali-toolkit/internal/builder/builder-filesystem.h
@@
-46,7
+46,9
@@
inline std::string ExpandPath(const std::string &name)
inline std::string ExePath(void)
{
char buf[256];
- readlink("/proc/self/exe", buf, sizeof(buf));
+ ssize_t len = readlink("/proc/self/exe", buf, sizeof(buf) - 1);
+ len = len > 0 ? len : 0;
+ buf[len] = '\0';
return std::string(buf);
}