summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-02-26 16:12:46 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-02-26 16:12:46 +0100
commitc280c375ca6987f3ee8f6856b4c4c445efa7f6a4 (patch)
treeddb3890c5012bb2b6446415a9f091e2d77c169b7
parentf02e1f68905a563e1d73a298e0de0e5da8b2eb9f (diff)
downloadouroboros-c280c375ca6987f3ee8f6856b4c4c445efa7f6a4.tar.gz
ouroboros-c280c375ca6987f3ee8f6856b4c4c445efa7f6a4.zip
lib: Add identifier for non-literal string
This adds the %s identifier in a sprintf. A non-literal was passed and used as a literal.
-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,