Mercurial > pidgin.yaz
changeset 27953:0200eaa7acc3
propagate from branch 'im.pidgin.pidgin' (head caf1ac283a4ee4be662ae40717b7d7104f76296d)
to branch 'im.pidgin.pidgin.yaz' (head 9a62b4aadcb79e413d98c8efe38005350aea82a9)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 13 Jun 2009 04:23:06 +0000 |
parents | b08b1f1111e4 (current diff) 55811a205c71 (diff) |
children | 462a509fb2ad |
files | libpurple/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c Fri Jun 12 18:00:28 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Sat Jun 13 04:23:06 2009 +0000 @@ -4178,10 +4178,8 @@ struct yahoo_sms_carrier_cb_data *sms_cb_data; sms_cb_data = g_malloc(sizeof(struct yahoo_sms_carrier_cb_data)); sms_cb_data->gc = gc; - sms_cb_data->who = g_malloc(strlen(who)); - sms_cb_data->what = g_malloc(strlen(what)); - strcpy(sms_cb_data->who, who); - strcpy(sms_cb_data->what, what); + sms_cb_data->who = g_strdup(who); + sms_cb_data->what = g_strdup(what); purple_conversation_write(conv, NULL, "Getting mobile carrier to send the sms", PURPLE_MESSAGE_SYSTEM, time(NULL));