Changeset 2334048


Ignore:
Timestamp:
2010-05-16T09:50:57Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0b3ffb1
Parents:
d4bc2d9
Message:

Oi, don't leak that precious memory!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    rd4bc2d9 r2334048  
    10421042        } else if (args->reqclass & AIM_CAPS_ICQRTF) {
    10431043                // TODO: constify
    1044                 char *text = g_strdup(args->info.rtfmsg.rtfmsg);
     1044                char text[strlen(args->info.rtfmsg.rtfmsg)+1];
     1045                strncpy(text, args->info.rtfmsg.rtfmsg, sizeof(text));
    10451046                imcb_buddy_msg(ic, normalize(userinfo->sn), text, 0, 0);
    10461047        }
Note: See TracChangeset for help on using the changeset viewer.