From 09827e2643442837027c22046c787a78b77722b6 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Wed, 15 Jan 2014 11:40:37 -0800 Subject: [PATCH] terminal: use xstrdup instead to handle OOM Signed-off-by: U. Artie Eoff --- clients/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/terminal.c b/clients/terminal.c index 09bc321..f3646fe 100644 --- a/clients/terminal.c +++ b/clients/terminal.c @@ -2830,7 +2830,7 @@ terminal_create(struct display *display) terminal->margin_bottom = -1; terminal->window = window_create(display); terminal->widget = window_frame_create(terminal->window, terminal); - terminal->title = strdup("Wayland Terminal"); + terminal->title = xstrdup("Wayland Terminal"); window_set_title(terminal->window, terminal->title); widget_set_transparent(terminal->widget, 0); -- 2.7.4