if (atom)
if (snprintf(prop, SWM_PROPLEN, "%s", val) < SWM_PROPLEN)
(*xcp)(dpy, id, atom, XA_STRING,
- 8, PropModeReplace, (unsigned char *)prop, SWM_PROPLEN);
+ 8, PropModeReplace, (unsigned char *)prop,
+ strlen((char *)prop));
}
typedef Window(CWF) (Display * _display, Window _parent, int _x,
XtAppNextEvent(XtAppContext app_context, XEvent *event_return)
{
static ANEF *func = NULL;
- static int kp_add = 0, kp_subtract = 0;
+ static KeyCode kp_add = 0, kp_subtract = 0;
/* find the real Xlib and the real X function */
if (!lib_xtlib)