313
313
unsigned char *data = NULL;
314
314
if (XGetWindowProperty(dpy, w, XA_WM_CLASS, 0L, (long)BUFSIZ, False,
317
317
&actual_format, &nitems, &leftover, &data) != Success)
320
320
if ( (actual_type == XA_STRING) && (actual_format == 8) ) {
321
321
len_name = strlen((char *) data);
322
322
if (! (classhint->res_name = Xmalloc((unsigned) (len_name+1)))) {