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

Diff for /src/usr.bin/tmux/client.c between version 1.71 and 1.72

version 1.71, 2013/10/10 12:26:34 version 1.72, 2013/10/10 12:27:38
Line 575 
Line 575 
                         imsg_free(&imsg);                          imsg_free(&imsg);
                         return (-1);                          return (-1);
                 case MSG_SHELL:                  case MSG_SHELL:
                         if (data[datalen - 1] != '\0')                          if (datalen == 0 || data[datalen - 1] != '\0')
                                 fatalx("bad MSG_SHELL string");                                  fatalx("bad MSG_SHELL string");
   
                         clear_signals(0);                          clear_signals(0);
Line 659 
Line 659 
                         kill(getpid(), SIGTSTP);                          kill(getpid(), SIGTSTP);
                         break;                          break;
                 case MSG_LOCK:                  case MSG_LOCK:
                         if (data[datalen - 1] != '\0')                          if (datalen == 0 || data[datalen - 1] != '\0')
                                 fatalx("bad MSG_LOCK string");                                  fatalx("bad MSG_LOCK string");
   
                         system(data);                          system(data);

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72