Changeset f774e01 for protocols/oscar


Ignore:
Timestamp:
2008-01-30T23:05:52Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0fbda193
Parents:
b5c8a34
Message:

Fixed handling of OSCAR multi-part messages... They're not arrays, they're
linked lists!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    rb5c8a34 rf774e01  
    10661066                g_snprintf(tmp, BUF_LONG, "%s", args->msg);
    10671067        } else {
    1068                 int i;
     1068                aim_mpmsg_section_t *part;
    10691069               
    10701070                *tmp = 0;
    1071                 for (i = 0; i < args->mpmsg.numparts; i ++) {
    1072                         g_strlcat(tmp, (char*) args->mpmsg.parts[i].data, BUF_LONG);
    1073                         g_strlcat(tmp, "\n", BUF_LONG);
     1071                for (part = args->mpmsg.parts; part; part = part->next) {
     1072                        if (part->data) {
     1073                                g_strlcat(tmp, (char*) part->data, BUF_LONG);
     1074                                g_strlcat(tmp, "\n", BUF_LONG);
     1075                        }
    10741076                }
    10751077        }
Note: See TracChangeset for help on using the changeset viewer.