mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 16:03:40 +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);
|
||||
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_free (message);
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user