From 1221ac8c921dfe99e01b8ba3f9870b21ae260726 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Mon, 16 Jun 2014 20:42:04 +0200 Subject: [PATCH] Use sanitized variable instead of settings value --- x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x.c b/x.c index 0ead4c1..8dbacb7 100644 --- a/x.c +++ b/x.c @@ -965,7 +965,7 @@ static void x_set_wm(Window win) XStoreName(xctx.dpy, win, title); XChangeProperty(xctx.dpy, win, _net_wm_title, XInternAtom(xctx.dpy, "UTF8_STRING", False), 8, - PropModeReplace, (unsigned char *) settings.title, strlen(settings.title)); + PropModeReplace, (unsigned char *) title, strlen(title)); /* set window class */ char *class = settings.class != NULL ? settings.class : "Dunst";