From d5fb9cc769f6e3b2b29727e0bec523ac95b4affc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 25 Jan 2011 12:45:37 -0500 Subject: [PATCH] window.c: Make title not const We now strdup it. --- clients/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/window.c b/clients/window.c index cad8040f..5f8be171 100644 --- a/clients/window.c +++ b/clients/window.c @@ -86,7 +86,7 @@ struct window { struct display *display; struct window *parent; struct wl_surface *surface; - const char *title; + char *title; struct rectangle allocation, saved_allocation, server_allocation; int x, y; int resize_edges; @@ -1236,7 +1236,7 @@ window_set_keyboard_focus_handler(struct window *window, void window_set_title(struct window *window, const char *title) { - free((void*) window->title); + free(window->title); window->title = strdup(title); }