Read and respond to this message at:
By: breathermachine

I'm making a text morphing plugin for gaim. Before it sends the message i typed,
it will modify it through a callback function responding to the "sending-im-msg"

void sending_im_msg(GaimAccount *account, const char *receiver,
                       char **message);

This is the callback prototype for that. The documentation at
says that you should free *message before replacing it with a new string.

I tried this piece of code but it breaks my gaim.

        char *str;
        str=g_malloc(13); //just enough for a 12-character, format-free text.
        strcpy(str,"Now more fun");

Somehow this doesn't work in my system.
Anyone help?


You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to and visit:

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
Gaim-forums mailing list

Reply via email to