Ignore:
Timestamp:
2015-04-10T17:10:41Z (9 years ago)
Author:
dequis <dx@…>
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)
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

    ra4be2f6 r913a663  
    174174void msn_queue_feed(struct msn_data *h, char *bytes, int st)
    175175{
    176         h->rxq = g_renew(char, h->rxq, h->rxlen + 1024);
     176        h->rxq = g_renew(char, h->rxq, h->rxlen + st);
    177177        memcpy(h->rxq + h->rxlen, bytes, st);
    178178        h->rxlen += st;
     
    235235                        /* If we reached the end of the buffer, there's still an incomplete command there.
    236236                           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') {
    238238                                break;
    239239                        }
Note: See TracChangeset for help on using the changeset viewer.