use g_strerror() instead of strerror()
Make sure we get a UTF-8 encoded string.
This commit is contained in:
@@ -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;
|
||||
|
@@ -39,7 +39,7 @@ static void
|
||||
x_sigaction(int signum, const struct sigaction *act)
|
||||
{
|
||||
if (sigaction(signum, act, NULL) < 0)
|
||||
MPD_ERROR("sigaction() failed: %s", strerror(errno));
|
||||
MPD_ERROR("sigaction() failed: %s", g_strerror(errno));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user