[Xfce4-commits] r26437 - xfwm4/branches/xfce_4_2/src

Olivier Fourdan olivier at xfce.org
Mon Dec 3 22:51:17 CET 2007


Author: olivier
Date: 2007-12-03 21:51:16 +0000 (Mon, 03 Dec 2007)
New Revision: 26437

Modified:
   xfwm4/branches/xfce_4_2/src/hints.c
Log:
Remove trailing \0 in UTF-8 strings, that causes libwnck to rightfully complain that NET_WM_NAME contains invalid UTF-8

Modified: xfwm4/branches/xfce_4_2/src/hints.c
===================================================================
--- xfwm4/branches/xfce_4_2/src/hints.c	2007-12-03 21:50:46 UTC (rev 26436)
+++ xfwm4/branches/xfce_4_2/src/hints.c	2007-12-03 21:51:16 UTC (rev 26437)
@@ -546,7 +546,7 @@
 
     XChangeProperty (display_info->dpy, w, display_info->atoms[atom_id], 
                      display_info->atoms[UTF8_STRING], 8, PropModeReplace,
-                     (unsigned char *) val, strlen (val) + 1);
+                     (unsigned char *) val, strlen (val));
 }
 
 void



More information about the Xfce4-commits mailing list