diff options
author | nicm <nicm> | 2014-10-20 23:27:14 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-10-20 23:27:14 +0000 |
commit | 900f6fc17e6764377a8e293ce742fb41f1add9bd (patch) | |
tree | 566ebe615f419bcca0cf2cd5a8e470228f192dca /screen.c | |
parent | 30bacf6f3038a867b53143150944f0997558114b (diff) | |
download | rtmux-900f6fc17e6764377a8e293ce742fb41f1add9bd.tar.gz rtmux-900f6fc17e6764377a8e293ce742fb41f1add9bd.tar.bz2 rtmux-900f6fc17e6764377a8e293ce742fb41f1add9bd.zip |
Tidy up some includes.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -31,12 +31,12 @@ void screen_resize_y(struct screen *, u_int); void screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) { - char hn[MAXHOSTNAMELEN]; + char host[HOST_NAME_MAX]; s->grid = grid_create(sx, sy, hlimit); - if (gethostname(hn, MAXHOSTNAMELEN) == 0) - s->title = xstrdup(hn); + if (gethostname(host, HOST_NAME_MAX) == 0) + s->title = xstrdup(host); else s->title = xstrdup(""); |