From d47ef51cb351e8ad09ee7688749cb63a18f42916 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 16 Mar 2009 11:59:26 +0100 Subject: socket_util: use g_strerror() instead of strerror() g_strerror() is more portable, and guarantees that the returned string is UTF-8 encoded. --- src/socket_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket_util.c b/src/socket_util.c index d8a58f9ad..9485ae1e7 100644 --- a/src/socket_util.c +++ b/src/socket_util.c @@ -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; } -- cgit v1.2.3