summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.com>2010-03-23 18:09:14 +0100
committerPascal Terjan <pterjan@mandriva.com>2010-03-23 18:09:14 +0100
commitaab051f9442c7256790a58f57f0f23ec1b982390 (patch)
treef23a831bd8c8fba29e174b32f405e29e493b46dc
parent4e77734d490f1a077f474db1bc51ea5e1c4f2206 (diff)
Fix encoding of error message
Use g_strerror instead of strerror to get UTF-8
-rw-r--r--collector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collector.c b/collector.c
index 7eef464..d93f353 100644
--- a/collector.c
+++ b/collector.c
@@ -360,7 +360,7 @@ static void *
fail (GError **err, const char *what)
{
g_set_error (err, COLLECTOR_ERROR, COLLECTOR_ERROR_FAILED,
- "%s: %s", what, strerror (errno));
+ "%s: %s", what, g_strerror (errno));
return NULL;
}