diff options
author | Sander Vrijders <[email protected]> | 2016-02-26 16:08:09 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-02-26 16:08:09 +0100 |
commit | f02e1f68905a563e1d73a298e0de0e5da8b2eb9f (patch) | |
tree | f87e7d2a7e5a9c789a47561b8a715152aac24e43 /src/lib/sockets.c | |
parent | 0ab26ce5ae6c80313e55e3251cc0ee180419f696 (diff) | |
download | ouroboros-f02e1f68905a563e1d73a298e0de0e5da8b2eb9f.tar.gz ouroboros-f02e1f68905a563e1d73a298e0de0e5da8b2eb9f.zip |
lib: Fix two errors
Fixes two errors in the library. The return code of a write to a
socket was ignored. A non literal string was passed to sprintf as a
literal one.
Diffstat (limited to 'src/lib/sockets.c')
-rw-r--r-- | src/lib/sockets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/sockets.c b/src/lib/sockets.c index 095c9e5c..0ebad842 100644 --- a/src/lib/sockets.c +++ b/src/lib/sockets.c @@ -45,7 +45,7 @@ int client_socket_open(char * file_name) } serv_addr.sun_family = AF_UNIX; - sprintf(serv_addr.sun_path, file_name); + sprintf(serv_addr.sun_path, "%s", file_name); if (connect(sockfd, (struct sockaddr *) &serv_addr, |