summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2017-05-04 15:23:33 +0900
committerchleun.moon <chleun.moon@samsung.com>2017-05-04 15:37:58 +0900
commit651d67b2c2cb5f51738cbdbc25409299e139c0f1 (patch)
tree75cb5fd5f1980aae175f26039fda2489544e286a /src/inet.c
parent381b4d64dc20981d0019aa9c15692c3fa36e0292 (diff)
downloadconnman-651d67b2c2cb5f51738cbdbc25409299e139c0f1.tar.gz
connman-651d67b2c2cb5f51738cbdbc25409299e139c0f1.tar.bz2
connman-651d67b2c2cb5f51738cbdbc25409299e139c0f1.zip
Fix svace issues (WGID-207858, 208122, 208137, 208138)submit/tizen/20170504.080025accepted/tizen/unified/20170504.114207
Change-Id: I31373fbb6ad79517e63f4023c1f4bac2f63424e5 Signed-off-by: cheoleun <chleun.moon@samsung.com>
Diffstat (limited to 'src/inet.c')
-rwxr-xr-xsrc/inet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inet.c b/src/inet.c
index 45408cec..c65ebb3c 100755
--- a/src/inet.c
+++ b/src/inet.c
@@ -1468,6 +1468,9 @@ static int ndisc_send_unspec(int type, int oif, const struct in6_addr *dest,
char cbuf[CMSG_SPACE(sizeof(*pinfo))];
struct iovec iov[2];
int fd, datalen, ret, iovlen = 1;
+#if defined TIZEN_EXT
+ char ebuf[256];
+#endif
DBG("");
@@ -1547,7 +1550,7 @@ static int ndisc_send_unspec(int type, int oif, const struct in6_addr *dest,
ret = sendmsg(fd, &msgh, 0);
#if defined TIZEN_EXT
- DBG("sendmsg errno: %d/%s", errno, strerror(errno));
+ DBG("sendmsg errno: %d/%s", errno, strerror_r(errno, ebuf, sizeof(ebuf)));
#endif
close(fd);