[Xfce4-commits] r26433 - xfwm4/trunk/src

Olivier Fourdan olivier at xfce.org
Mon Dec 3 22:41:39 CET 2007


Author: olivier
Date: 2007-12-03 21:41:38 +0000 (Mon, 03 Dec 2007)
New Revision: 26433

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

Modified: xfwm4/trunk/src/hints.c
===================================================================
--- xfwm4/trunk/src/hints.c	2007-12-03 17:50:17 UTC (rev 26432)
+++ xfwm4/trunk/src/hints.c	2007-12-03 21:41:38 UTC (rev 26433)
@@ -611,7 +611,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