Changeset 73b1a8e


Ignore:
Timestamp:
2015-04-10T17:10:41Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
3058c30
Parents:
913a663
git-author:
dequis <dx@…> (19-03-15 10:25:33)
git-committer:
dequis <dx@…> (10-04-15 17:10:41)
Message:

get_rfc822_header: allow headers at the end of a string

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    r913a663 r73b1a8e  
    719719                        }
    720720
    721                         /* Make sure we're still inside the string */
    722                         if (i >= len) {
    723                                 return(NULL);
    724                         }
    725 
    726721                        /* Copy the found data */
    727722                        return(g_strndup(ret, text + i - ret));
  • protocols/msn/ns.c

    r913a663 r73b1a8e  
    304304                g_free(resp);
    305305                return st;
     306        } else if (strcmp(cmd[0], "QRY") == 0) {
     307                /* CONGRATULATIONS */
    306308        } else if (strcmp(cmd[0], "OUT") == 0) {
    307309                int allow_reconnect = TRUE;
     
    326328                if (num_parts >= 3) {
    327329                        handler->msglen = atoi(cmd[2]);
     330                }
     331        } else if (strcmp(cmd[0], "PUT") == 0) {
     332                if (num_parts >= 4) {
     333                        handler->msglen = atoi(cmd[3]);
    328334                }
    329335        } else if (strcmp(cmd[0], "QNG") == 0) {
Note: See TracChangeset for help on using the changeset viewer.