diff options
| -rw-r--r-- | x.c | 10 | 
1 files changed, 6 insertions, 4 deletions
| @@ -1588,8 +1588,9 @@ xseticontitle(char *p)  	XTextProperty prop;  	DEFAULT(p, opt_title); -	Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, -			&prop); +	if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, +	                                &prop) != Success) +		return;  	XSetWMIconName(xw.dpy, xw.win, &prop);  	XSetTextProperty(xw.dpy, xw.win, &prop, xw.netwmiconname);  	XFree(prop.value); @@ -1601,8 +1602,9 @@ xsettitle(char *p)  	XTextProperty prop;  	DEFAULT(p, opt_title); -	Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, -			&prop); +	if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, +	                                &prop) != Success) +		return;  	XSetWMName(xw.dpy, xw.win, &prop);  	XSetTextProperty(xw.dpy, xw.win, &prop, xw.netwmname);  	XFree(prop.value); |