[Xfce4-commits] <midori:master> Replace a '\' in the display name with a '_'
Christian Dywan
noreply at xfce.org
Thu Nov 19 23:44:01 CET 2009
Updating branch refs/heads/master
to 6658afb8858bdd92c1f19dc37edd05150079fe7b (commit)
from 277d957816876946ed89ab4b9a349898367911db (commit)
commit 6658afb8858bdd92c1f19dc37edd05150079fe7b
Author: Peter de Ridder <peter at xfce.org>
Date: Thu Nov 19 22:55:21 2009 +0100
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 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/midori/midori-app.c b/midori/midori-app.c
index 232bb56..b9e4971 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);
More information about the Xfce4-commits
mailing list