im.pidgin.pidgin: 76b97f2f1bfc771a290e9aa41e08040b6deb66e6
khc at pidgin.im
khc at pidgin.im
Sat Nov 3 01:50:41 EDT 2007
-----------------------------------------------------------------
Revision: 76b97f2f1bfc771a290e9aa41e08040b6deb66e6
Ancestor: fb02a135c595d1c1e563863ce11085eb3222c724
Author: khc at pidgin.im
Date: 2007-11-03T05:46:41
Branch: im.pidgin.pidgin
Modified files:
libpurple/protocols/msn/slplink.c
ChangeLog:
Patch from eperez to fix some debug code, Fixes #3524
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slplink.c 3bcb051df01cc15182076388321a6b185d2558b9
+++ libpurple/protocols/msn/slplink.c 2a095771be3adaf39d427b9e4455bfddaaeabbf8
@@ -39,22 +39,17 @@ debug_msg_to_file(MsnMessage *msg, gbool
char *tmp;
char *dir;
char *pload;
- FILE *tf;
int c;
gsize pload_size;
dir = send ? "send" : "recv";
c = send ? m_sc++ : m_rc++;
tmp = g_strdup_printf("%s/msntest/%s/%03d", g_get_home_dir(), dir, c);
- tf = g_fopen(tmp, "wb");
- if (tf == NULL)
+ pload = msn_message_gen_payload(msg, &pload_size);
+ if (!purple_util_write_data_to_file_absolute(tmp, pload, pload_size))
{
- purple_debug_error("msn", "could not open debug file\n");
- return;
+ purple_debug_error("msn", "could not save debug file");
}
- pload = msn_message_gen_payload(msg, &pload_size);
- fwrite(pload, 1, pload_size, tf);
- fclose(tf);
g_free(tmp);
}
#endif
More information about the Commits
mailing list