summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-02-26 16:15:17 +0100
committerSander Vrijders <[email protected]>2016-02-26 16:15:17 +0100
commitf1c57bfaef45b20640aa171e5982f60e629b44b5 (patch)
tree304fff1a6cc5512f3771373dee52d9a3a8444a11
parent49ffdfd539fc7de2c41127fd9b29ad8b90839238 (diff)
parentc280c375ca6987f3ee8f6856b4c4c445efa7f6a4 (diff)
downloadouroboros-f1c57bfaef45b20640aa171e5982f60e629b44b5.tar.gz
ouroboros-f1c57bfaef45b20640aa171e5982f60e629b44b5.zip
Merged in sandervrijders/ouroboros/be-bugfixes (pull request #15)
lib: Add identifier for non-literal string
-rw-r--r--src/lib/sockets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/sockets.c b/src/lib/sockets.c
index 0ebad842..ef4b3a47 100644
--- a/src/lib/sockets.c
+++ b/src/lib/sockets.c
@@ -79,7 +79,7 @@ int server_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 (bind(sockfd,
(struct sockaddr *) &serv_addr,