Changeset fef7813 for protocols/oscar


Ignore:
Timestamp:
2010-09-05T11:31:22Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ed320e8
Parents:
41e0c00
Message:

Fix compiler warnings. Also fixing irc_send_motd(), which so far got away
with a horrible practice of reading the MOTD file one by one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/ssi.c

    r41e0c00 rfef7813  
    415415                if (!parentgroup) {
    416416                        char *newgroup;
    417                         newgroup = (char*)g_malloc(strlen("Unknown")*sizeof(char));
     417                        newgroup = (char*)g_malloc(strlen("Unknown")+1);
    418418                        strcpy(newgroup, "Unknown");
    419419                        aim_ssi_addgroups(sess, conn, &newgroup, 1);
Note: See TracChangeset for help on using the changeset viewer.