terminal: use xstrdup instead to handle OOM
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Wed, 15 Jan 2014 19:40:37 +0000 (11:40 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 20 Jan 2014 06:01:30 +0000 (22:01 -0800)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
clients/terminal.c

index 09bc321..f3646fe 100644 (file)
@@ -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);