aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-16 11:59:26 +0100
committerMax Kellermann <max@duempel.org>2009-03-16 11:59:26 +0100
commitd47ef51cb351e8ad09ee7688749cb63a18f42916 (patch)
treede6c294d32398c8fe1cba19ca369a958c5fc9d11 /src
parentbba127a392486be31961e82fe577de1a8caa8e5c (diff)
downloadmpd-d47ef51cb351e8ad09ee7688749cb63a18f42916.tar.gz
mpd-d47ef51cb351e8ad09ee7688749cb63a18f42916.tar.xz
mpd-d47ef51cb351e8ad09ee7688749cb63a18f42916.zip
socket_util: use g_strerror() instead of strerror()
g_strerror() is more portable, and guarantees that the returned string is UTF-8 encoded.
Diffstat (limited to '')
-rw-r--r--src/socket_util.c2
1 files changed, 1 insertions, 1 deletions
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;
}