[Xfce4-commits] r26436 - xfwm4/branches/xfce_4_4/src

Olivier Fourdan olivier at xfce.org
Mon Dec 3 22:50:46 CET 2007


Author: olivier
Date: 2007-12-03 21:50:46 +0000 (Mon, 03 Dec 2007)
New Revision: 26436

Modified:
   xfwm4/branches/xfce_4_4/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_4/src/hints.c
===================================================================
--- xfwm4/branches/xfce_4_4/src/hints.c	2007-12-03 21:44:29 UTC (rev 26435)
+++ xfwm4/branches/xfce_4_4/src/hints.c	2007-12-03 21:50:46 UTC (rev 26436)
@@ -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