summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authornicm <nicm>2014-10-20 23:27:14 +0000
committernicm <nicm>2014-10-20 23:27:14 +0000
commit900f6fc17e6764377a8e293ce742fb41f1add9bd (patch)
tree566ebe615f419bcca0cf2cd5a8e470228f192dca /screen.c
parent30bacf6f3038a867b53143150944f0997558114b (diff)
Tidy up some includes.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/screen.c b/screen.c
index e5550222..5ef18a27 100644
--- a/screen.c
+++ b/screen.c
@@ -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("");