$OpenBSD: patch-src_PDecor_cc,v 1.2 2008/10/09 16:56:12 ajacoutot Exp $
--- src/PDecor.cc.orig	Tue Oct  7 18:21:36 2008
+++ src/PDecor.cc	Tue Oct  7 18:22:20 2008
@@ -1025,7 +1025,9 @@ PDecor::activateChild(PWinObj *child)
 void
 PDecor::getDecorInfo(wchar_t *buf, uint size)
 {
-    swprintf(buf, size, L"%dx%d+%d+%d", _gm.width, _gm.height, _gm.x, _gm.y);
+    char buf2[256];
+    snprintf(buf2, sizeof buf2, "%dx%d+%d+%d", _gm.width, _gm.height, _gm.x, _gm.y);
+    mbstowcs(buf, buf2, size);
 }
 
 //! @brief
