changeset 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 65c7e53d4bdb 35cbe4684177
files libpurple/protocols/msn/msg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msg.c	Sun Apr 25 21:29:40 2010 +0000
+++ b/libpurple/protocols/msn/msg.c	Sun Apr 25 21:40:25 2010 +0000
@@ -976,7 +976,7 @@
 	purple_debug_info("msn", "Received wink from %s\n", who);
 
 	if ((f = purple_mkstemp(&path, TRUE)) &&
-	    (fwrite(data, size, 1, f) == size)) {
+	    (fwrite(data, 1, size, f) == size)) {
 		datacast_inform_user(slpcall->slplink->swboard,
 		                     who,
 		                     _("%s sent a wink. <a href='msn-wink://%s'>Click here to play it</a>"),
@@ -1002,7 +1002,7 @@
 	purple_debug_info("msn", "Received voice clip from %s\n", who);
 
 	if ((f = purple_mkstemp(&path, TRUE)) &&
-	    (fwrite(data, size, 1, f) == size)) {
+	    (fwrite(data, 1, size, f) == size)) {
 		datacast_inform_user(slpcall->slplink->swboard,
 		                     who,
 		                     _("%s sent a voice clip. <a href='audio://%s'>Click here to play it</a>"),