X-Git-Url: https://code.delx.au/spectrwm/blobdiff_plain/8eb6cfee6344a0e61511f1eb2e36a91c30854e1e..c7532ca6f471773d7ea399f30c935fd531b624a8:/lib/swm_hack.c diff --git a/lib/swm_hack.c b/lib/swm_hack.c index f90419e..c992689 100644 --- a/lib/swm_hack.c +++ b/lib/swm_hack.c @@ -106,7 +106,8 @@ set_property(Display *dpy, Window id, char *name, char *val) 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, @@ -233,7 +234,7 @@ void 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)