pidgin: caf1ac28: NULL terminate some strings. Hopefully s...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Fri Jun 12 17:05:39 EDT 2009
-----------------------------------------------------------------
Revision: caf1ac283a4ee4be662ae40717b7d7104f76296d
Ancestor: e155acab29d005538351633111052f094e5f5f98
Author: maiku at soc.pidgin.im
Date: 2009-06-12T21:00:44
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/caf1ac283a4ee4be662ae40717b7d7104f76296d
Modified files:
libpurple/protocols/yahoo/yahoo.c
ChangeLog:
NULL terminate some strings. Hopefully stop Yahoo texting crashes.
Thanks darkrain42 for helping with the solution.
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c b803108e2d166355b1f6fd31758b0a5b740f99e8
+++ libpurple/protocols/yahoo/yahoo.c e95c53b066da4867a741b22515e305ab1da6ae29
@@ -4172,10 +4172,8 @@ static int yahoo_send_im(PurpleConnectio
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));
More information about the Commits
mailing list