Ignore:
Timestamp:
2015-03-15T14:41:48Z (9 years ago)
Author:
dequis <dx@…>
Children:
89e0c94
Parents:
c408298
git-author:
dequis <dx@…> (14-03-15 12:00:58)
git-committer:
dequis <dx@…> (15-03-15 14:41:48)
Message:

msn: implement the rest of the http gateway support, enable by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn_util.c

    rc408298 rb4e96d6  
    168168void msn_queue_feed(struct msn_data *h, char *bytes, int st)
    169169{
    170         h->rxq = g_renew(char, h->rxq, h->rxlen + 1024);
     170        h->rxq = g_renew(char, h->rxq, h->rxlen + st);
    171171        memcpy(h->rxq + h->rxlen, bytes, st);
    172172        h->rxlen += st;
     
    229229                        /* If we reached the end of the buffer, there's still an incomplete command there.
    230230                           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') {
    232232                                break;
    233233                        }
Note: See TracChangeset for help on using the changeset viewer.