comparison libpurple/protocols/msn/msg.c @ 30194:0f1df8098d00

Oops, make sure that check actually succeeds when it's supposed to.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 25 Apr 2010 21:40:25 +0000
parents 1c3ee8378e2e
children 28dd2b7331fd 71fe96932a8e 0b22c840f4f4 f8ec889c5bce
comparison
equal deleted inserted replaced
30193:1c3ee8378e2e 30194:0f1df8098d00
974 char *path = NULL; 974 char *path = NULL;
975 const char *who = slpcall->slplink->remote_user; 975 const char *who = slpcall->slplink->remote_user;
976 purple_debug_info("msn", "Received wink from %s\n", who); 976 purple_debug_info("msn", "Received wink from %s\n", who);
977 977
978 if ((f = purple_mkstemp(&path, TRUE)) && 978 if ((f = purple_mkstemp(&path, TRUE)) &&
979 (fwrite(data, size, 1, f) == size)) { 979 (fwrite(data, 1, size, f) == size)) {
980 datacast_inform_user(slpcall->slplink->swboard, 980 datacast_inform_user(slpcall->slplink->swboard,
981 who, 981 who,
982 _("%s sent a wink. <a href='msn-wink://%s'>Click here to play it</a>"), 982 _("%s sent a wink. <a href='msn-wink://%s'>Click here to play it</a>"),
983 path); 983 path);
984 } else { 984 } else {
1000 char *path = NULL; 1000 char *path = NULL;
1001 const char *who = slpcall->slplink->remote_user; 1001 const char *who = slpcall->slplink->remote_user;
1002 purple_debug_info("msn", "Received voice clip from %s\n", who); 1002 purple_debug_info("msn", "Received voice clip from %s\n", who);
1003 1003
1004 if ((f = purple_mkstemp(&path, TRUE)) && 1004 if ((f = purple_mkstemp(&path, TRUE)) &&
1005 (fwrite(data, size, 1, f) == size)) { 1005 (fwrite(data, 1, size, f) == size)) {
1006 datacast_inform_user(slpcall->slplink->swboard, 1006 datacast_inform_user(slpcall->slplink->swboard,
1007 who, 1007 who,
1008 _("%s sent a voice clip. <a href='audio://%s'>Click here to play it</a>"), 1008 _("%s sent a voice clip. <a href='audio://%s'>Click here to play it</a>"),
1009 path); 1009 path);
1010 } else { 1010 } else {