Hi NRK,

---
 dwm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dwm.c b/dwm.c
index 253aba7..55dd68c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1808,7 +1808,8 @@ updatebars(void)
                .background_pixmap = ParentRelative,
                .event_mask = ButtonPressMask|ExposureMask
        };
-       XClassHint ch = {"dwm", "dwm"};
+       char s[] = "dwm";
+       XClassHint ch = { s, s };
        for (m = mons; m; m = m->next) {
                if (m->barwin)
                        continue;
-- 

I don't think that this change is necessary, strings pointed to by
XClassHint members are not modified, they're copied when necessary.

Reply via email to