1--- /src/socket.cpp
2+++ /src/socket.cpp
3@@ -60,12 +60,12 @@
4 int socket::bind(const std::string& address)
5 {
6 // format-security: format not a string literal and no format arguments.
7- return zsocket_bind(self_, address.c_str());
8+ return zsocket_bind(self_, "%s", address.c_str());
9 }
10 int socket::connect(const std::string& address)
11 {
12 // format-security: format not a string literal and no format arguments.
13- return zsocket_connect(self_, address.c_str());
14+ return zsocket_connect(self_, "%s", address.c_str());
15 }
16
17 bool operator==(const socket& sock_a, const socket& sock_b)