$OpenBSD: patch-src_FrameListMenu_cc,v 1.1 2008/10/09 16:56:12 ajacoutot Exp $
--- src/FrameListMenu.cc.orig	Tue Oct  7 18:21:44 2008
+++ src/FrameListMenu.cc	Tue Oct  7 18:23:23 2008
@@ -118,6 +118,7 @@ FrameListMenu::updateFrameListMenu(void)
     removeAll();
 
     wchar_t buf[16];
+    char buf2[16];
     wstring name;
 
     // need to add an action, otherwise it looks as if we don't have anything
@@ -141,7 +142,8 @@ FrameListMenu::updateFrameListMenu(void)
 
     for (uint i = 0; i < Workspaces::instance()->size(); ++i) {
         if (Workspaces::instance()->size() > 1) {
-            swprintf(buf, 16, L"<%d> ", i + 1);
+		snprintf(buf2, sizeof buf2, "<%d> ", i + 1);
+		mbstowcs(buf, buf2, 16);
         }
 
         for (it = Frame::frame_begin(); it != Frame::frame_end(); ++it) {
