From 6658afb8858bdd92c1f19dc37edd05150079fe7b Mon Sep 17 00:00:00 2001 From: Peter de Ridder Date: Thu, 19 Nov 2009 22:55:21 +0100 Subject: [PATCH] Replace a '\' in the display name with a '_' On Windows, display names can contain backslashes which results in an error in the socket implementation. --- midori/midori-app.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/midori/midori-app.c b/midori/midori-app.c index 232bb567..b9e49716 100644 --- a/midori/midori-app.c +++ b/midori/midori-app.c @@ -661,7 +661,8 @@ midori_app_create_instance (MidoriApp* app, display_name = g_strdup (gdk_display_get_name (display)); n = strlen (display_name); for (i = 0; i < n; i++) - if (display_name[i] == ':' || display_name[i] == '.') + if (display_name[i] == ':' || display_name[i] == '.' + || display_name[i] == '\\') display_name[i] = '_'; instance_name = g_strdup_printf ("de.twotoasts.%s_%s", name, display_name); -- 2.39.5