comparison src/protocols/msn/slplink.c @ 13314:b12427d2994e

[gaim-migrate @ 15680] SF Patch #1434560 from glommer "This patch prevent gaim from breaking in case MSN_DEBUG_SLP_FILES is on, and you don't have the needed fs infrastructure." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 22 Feb 2006 02:11:02 +0000
parents cdab645d1ad6
children 99b9b58b19dd
comparison
equal deleted inserted replaced
13313:403a97caf5c0 13314:b12427d2994e
45 45
46 dir = send ? "send" : "recv"; 46 dir = send ? "send" : "recv";
47 c = send ? m_sc++ : m_rc++; 47 c = send ? m_sc++ : m_rc++;
48 tmp = g_strdup_printf("%s/msntest/%s/%03d", g_get_home_dir(), dir, c); 48 tmp = g_strdup_printf("%s/msntest/%s/%03d", g_get_home_dir(), dir, c);
49 tf = g_fopen(tmp, "wb"); 49 tf = g_fopen(tmp, "wb");
50 if (tf == NULL)
51 {
52 gaim_debug_error("msn", "could not open debug file");
53 return;
54 }
50 pload = msn_message_gen_payload(msg, &pload_size); 55 pload = msn_message_gen_payload(msg, &pload_size);
51 fwrite(pload, 1, pload_size, tf); 56 fwrite(pload, 1, pload_size, tf);
52 fclose(tf); 57 fclose(tf);
53 g_free(tmp); 58 g_free(tmp);
54 } 59 }