use g_strerror() instead of strerror()

Make sure we get a UTF-8 encoded string.
This commit is contained in:
Max Kellermann
2012-03-06 22:06:08 +01:00
parent faf35e6082
commit 5016839b90
12 changed files with 29 additions and 28 deletions

View File

@@ -183,7 +183,7 @@ int main(int argc, char **argv)
nbytes = write(1, dest, length);
if (nbytes < 0) {
g_printerr("Failed to write: %s\n", strerror(errno));
g_printerr("Failed to write: %s\n", g_strerror(errno));
filter_close(filter);
filter_free(filter);
return 1;