Changeset be68d99


Ignore:
Timestamp:
2007-11-10T09:25:50Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
1bf1ae6
Parents:
2231302
Message:

Handing of multipart messages in OSCAR (usually from mobiles), this fixes
bug #88, at last.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r2231302 rbe68d99  
    10661066                        g_snprintf(tmp, BUF_LONG, "%s", args->msg);
    10671067                }
    1068         } else
     1068        } else if (args->mpmsg.numparts == 0) {
    10691069                g_snprintf(tmp, BUF_LONG, "%s", args->msg);
     1070        } else {
     1071                int i;
     1072               
     1073                *tmp = 0;
     1074                for (i = 0; i < args->mpmsg.numparts; i ++) {
     1075                        g_strlcat(tmp, (char*) args->mpmsg.parts[i].data, BUF_LONG);
     1076                        g_strlcat(tmp, "\n", BUF_LONG);
     1077                }
     1078        }
    10701079       
    10711080        strip_linefeed(tmp);
Note: See TracChangeset for help on using the changeset viewer.