summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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,