Changeset b4e96d6 for protocols/msn/msn_util.c
- Timestamp:
- 2015-03-15T14:41:48Z (10 years ago)
- Children:
- 89e0c94
- Parents:
- c408298
- git-author:
- dequis <dx@…> (14-03-15 12:00:58)
- git-committer:
- dequis <dx@…> (15-03-15 14:41:48)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn_util.c
rc408298 rb4e96d6 168 168 void msn_queue_feed(struct msn_data *h, char *bytes, int st) 169 169 { 170 h->rxq = g_renew(char, h->rxq, h->rxlen + 1024);170 h->rxq = g_renew(char, h->rxq, h->rxlen + st); 171 171 memcpy(h->rxq + h->rxlen, bytes, st); 172 172 h->rxlen += st; … … 229 229 /* If we reached the end of the buffer, there's still an incomplete command there. 230 230 Return and wait for more data. */ 231 if (i == h->rxlen && h->rxq[i - 1] != '\r' && h->rxq[i - 1] != '\n') {231 if (i && i == h->rxlen && h->rxq[i - 1] != '\r' && h->rxq[i - 1] != '\n') { 232 232 break; 233 233 }
Note: See TracChangeset
for help on using the changeset viewer.