From c82e06804e41af6b13b3a75e0268f32fbc4a4210 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 2 Feb 2012 02:00:12 +0000 Subject: Sync OpenBSD patchset 1024: Move window name changes into wrapper function window_set_name, from George Nachman. --- input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 0e342338..ac4a55e3 100644 --- a/input.c +++ b/input.c @@ -1552,8 +1552,7 @@ input_exit_rename(struct input_ctx *ictx) return; log_debug("%s: \"%s\"", __func__, ictx->input_buf); - xfree(ictx->wp->window->name); - ictx->wp->window->name = xstrdup(ictx->input_buf); + window_set_name(ictx->wp->window, ictx->input_buf); options_set_number(&ictx->wp->window->options, "automatic-rename", 0); server_status_window(ictx->wp->window); -- cgit