=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen.c,v retrieving revision 1.30 retrieving revision 1.31 diff -c -r1.30 -r1.31 *** src/usr.bin/tmux/screen.c 2014/10/08 17:35:58 1.30 --- src/usr.bin/tmux/screen.c 2014/10/20 23:27:14 1.31 *************** *** 1,4 **** ! /* $OpenBSD: screen.c,v 1.30 2014/10/08 17:35:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: screen.c,v 1.31 2014/10/20 23:27:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 31,42 **** void screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) { ! char hn[MAXHOSTNAMELEN]; s->grid = grid_create(sx, sy, hlimit); ! if (gethostname(hn, MAXHOSTNAMELEN) == 0) ! s->title = xstrdup(hn); else s->title = xstrdup(""); --- 31,42 ---- void screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) { ! char host[HOST_NAME_MAX]; s->grid = grid_create(sx, sy, hlimit); ! if (gethostname(host, HOST_NAME_MAX) == 0) ! s->title = xstrdup(host); else s->title = xstrdup("");