From c280c375ca6987f3ee8f6856b4c4c445efa7f6a4 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Fri, 26 Feb 2016 16:12:46 +0100 Subject: 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. --- src/lib/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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, -- cgit v1.2.3