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

Diff for /src/usr.bin/tmux/server-fn.c between version 1.9 and 1.10

version 1.9, 2009/07/20 14:37:51 version 1.10, 2009/07/26 12:58:44
Line 48 
Line 48 
 }  }
   
 void  void
   server_write_error(struct client *c, const char *msg)
   {
           struct msg_print_data   printdata;
   
           strlcpy(printdata.msg, msg, sizeof printdata.msg);
           server_write_client(c, MSG_ERROR, &printdata, sizeof printdata);
   }
   
   void
 server_write_client(  server_write_client(
     struct client *c, enum hdrtype type, const void *buf, size_t len)      struct client *c, enum hdrtype type, const void *buf, size_t len)
 {  {
Line 220 
Line 229 
         password_failures++;          password_failures++;
         for (i = 0; i < ARRAY_LENGTH(&clients); i++) {          for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
                 c = ARRAY_ITEM(&clients, i);                  c = ARRAY_ITEM(&clients, i);
                 if (c == NULL || c->prompt_buffer == NULL)                  if (c == NULL || c->prompt_buffer == NULL)
                         continue;                          continue;
   
                 *c->prompt_buffer = '\0';                  *c->prompt_buffer = '\0';

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10