diff options
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -110,12 +110,8 @@ screen_set_cursor_colour(struct screen *s, const char *colour_string) void screen_set_title(struct screen *s, const char *title) { - char tmp[BUFSIZ]; - - strlcpy(tmp, title, sizeof tmp); - free(s->title); - s->title = xstrdup(tmp); + s->title = xstrdup(title); } /* Resize screen. */ |