[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.32 and 1.33

version 1.32, 2014/11/06 09:17:25 version 1.33, 2015/01/11 04:14:40
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 host[HOST_NAME_MAX];          char host[HOST_NAME_MAX+1];
   
         s->grid = grid_create(sx, sy, hlimit);          s->grid = grid_create(sx, sy, hlimit);
   
         if (gethostname(host, HOST_NAME_MAX) == 0)          if (gethostname(host, sizeof(host)) == 0)
                 s->title = xstrdup(host);                  s->title = xstrdup(host);
         else          else
                 s->title = xstrdup("");                  s->title = xstrdup("");

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33