[BACK]Return to cmd-load-buffer.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-load-buffer.c between version 1.16 and 1.17

version 1.16, 2011/01/04 00:42:46 version 1.17, 2011/05/18 08:07:44
Line 154 
Line 154 
   
         psize = EVBUFFER_LENGTH(c->stdin_event->input);          psize = EVBUFFER_LENGTH(c->stdin_event->input);
         if (psize == 0 || (pdata = malloc(psize + 1)) == NULL) {          if (psize == 0 || (pdata = malloc(psize + 1)) == NULL) {
                 free(data);                  xfree(data);
                 return;                  return;
         }          }
         bufferevent_read(c->stdin_event, pdata, psize);          bufferevent_read(c->stdin_event, pdata, psize);
Line 170 
Line 170 
                 bufferevent_enable(c->stderr_event, EV_WRITE);                  bufferevent_enable(c->stderr_event, EV_WRITE);
         }          }
   
         free (data);          xfree(data);
 }  }

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17