mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
compiler: Correctly use g_strerror() instead of strerror()
This ensures the return value is always UTF-8. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
57a8834d7b
commit
08b3f14a32
@ -100,7 +100,7 @@ write_out_typelib (gchar *prefix,
|
|||||||
written = fwrite (typelib->data, 1, typelib->len, file);
|
written = fwrite (typelib->data, 1, typelib->len, file);
|
||||||
if (written < typelib->len)
|
if (written < typelib->len)
|
||||||
{
|
{
|
||||||
char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), strerror (errno));
|
char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), g_strerror (errno));
|
||||||
g_fprintf (stderr, "%s\n", message);
|
g_fprintf (stderr, "%s\n", message);
|
||||||
g_free (message);
|
g_free (message);
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user