Changeset 913a663 for protocols/msn/msn_util.c
- Timestamp:
- 2015-04-10T17:10:41Z (9 years ago)
- Branches:
- master
- Children:
- 73b1a8e
- Parents:
- a4be2f6
- git-author:
- dequis <dx@…> (14-03-15 12:00:58)
- git-committer:
- dequis <dx@…> (10-04-15 17:10:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn_util.c
ra4be2f6 r913a663 174 174 void msn_queue_feed(struct msn_data *h, char *bytes, int st) 175 175 { 176 h->rxq = g_renew(char, h->rxq, h->rxlen + 1024);176 h->rxq = g_renew(char, h->rxq, h->rxlen + st); 177 177 memcpy(h->rxq + h->rxlen, bytes, st); 178 178 h->rxlen += st; … … 235 235 /* If we reached the end of the buffer, there's still an incomplete command there. 236 236 Return and wait for more data. */ 237 if (i == h->rxlen && h->rxq[i - 1] != '\r' && h->rxq[i - 1] != '\n') {237 if (i && i == h->rxlen && h->rxq[i - 1] != '\r' && h->rxq[i - 1] != '\n') { 238 238 break; 239 239 }
Note: See TracChangeset
for help on using the changeset viewer.