mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02: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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user