[BACK]Return to screen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/screen.c between version 1.30 and 1.31

version 1.30, 2014/10/08 17:35:58 version 1.31, 2014/10/20 23:27:14
Line 31 
Line 31 
 void  void
 screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)  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);          s->grid = grid_create(sx, sy, hlimit);
   
         if (gethostname(hn, MAXHOSTNAMELEN) == 0)          if (gethostname(host, HOST_NAME_MAX) == 0)
                 s->title = xstrdup(hn);                  s->title = xstrdup(host);
         else          else
                 s->title = xstrdup("");                  s->title = xstrdup("");
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31