Commit d47ef51c authored by Max Kellermann's avatar Max Kellermann

socket_util: use g_strerror() instead of strerror()

g_strerror() is more portable, and guarantees that the returned string is UTF-8 encoded.
parent bba127a3
......@@ -121,7 +121,7 @@ socket_bind_listen(int domain, int type, int protocol,
ret = bind(fd, address, address_length);
if (ret < 0) {
g_set_error(error, listen_quark(), errno,
"%s", strerror(errno));
"%s", g_strerror(errno));
close(fd);
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment