projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
128b5f5
)
dbus:svace
57/63257/1
accepted/tizen/common/20160325.134848
accepted/tizen/ivi/20160323.140437
accepted/tizen/mobile/20160323.134631
accepted/tizen/tv/20160323.135100
accepted/tizen/wearable/20160323.134753
submit/tizen/20160323.030220
author
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Wed, 23 Mar 2016 03:00:41 +0000
(12:00 +0900)
committer
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Wed, 23 Mar 2016 03:00:52 +0000
(12:00 +0900)
Change-Id: Icd8dc41e4804a7e70b4206c506ded7b649990dd1
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
dbus/sd-daemon.c
patch
|
blob
|
history
diff --git
a/dbus/sd-daemon.c
b/dbus/sd-daemon.c
index
485b301
..
d49e514
100644
(file)
--- a/
dbus/sd-daemon.c
+++ b/
dbus/sd-daemon.c
@@
-443,7
+443,8
@@
_sd_export_ int sd_notify(int unset_environment, const char *state) {
memset(&sockaddr, 0, sizeof(sockaddr));
sockaddr.sa.sa_family = AF_UNIX;
- strncpy(sockaddr.un.sun_path, e, sizeof(sockaddr.un.sun_path));
+ strncpy(sockaddr.un.sun_path, e, sizeof(sockaddr.un.sun_path) - 1);
+
if (sockaddr.un.sun_path[0] == '@')
sockaddr.un.sun_path[0] = 0;