openbsd-ports/x11/pekwm/patches/patch-src_Frame_cc
ajacoutot d5b38d878f - update to pekwm-0.1.7
from Nicholas Marriott (MAINTAINER)
2008-10-09 16:56:12 +00:00

22 lines
702 B
Plaintext

$OpenBSD: patch-src_Frame_cc,v 1.1 2008/10/09 16:56:12 ajacoutot Exp $
--- src/Frame.cc.orig Tue Oct 7 18:15:58 2008
+++ src/Frame.cc Tue Oct 7 18:22:05 2008
@@ -469,6 +469,7 @@ Frame::updatedActiveChild(void)
void
Frame::getDecorInfo(wchar_t *buf, uint size)
{
+ char buf2[256];
uint width, height;
if (_client) {
calcSizeInCells(width, height);
@@ -476,7 +477,8 @@ Frame::getDecorInfo(wchar_t *buf, uint size)
width = _gm.width;
height = _gm.height;
}
- swprintf(buf, size, L"%d+%d+%d+%d", width, height, _gm.x, _gm.y);
+ snprintf(buf2, sizeof buf2, "%d+%d+%d+%d", width, height, _gm.x, _gm.y);
+ mbstowcs(buf, buf2, size);
}
//! @brief