diff libpurple/protocols/oscar/family_icbm.c @ 21724:d69d729ba19c

The current oscar max message size appears to be 2544. I don't know of a way to get this value from the server, but it seems likely that they probably send it to us somewhere. Anyhoo, this makes our error handling a little nicer when trying to send a message that's too large
author Mark Doliner <mark@kingant.net>
date Sun, 02 Dec 2007 09:25:29 +0000
parents b3e4b81456b0
children bb1190d6961c
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_icbm.c	Sun Dec 02 08:39:31 2007 +0000
+++ b/libpurple/protocols/oscar/family_icbm.c	Sun Dec 02 09:25:29 2007 +0000
@@ -290,7 +290,7 @@
 		if (!args->msg || (args->msglen <= 0))
 			return -EINVAL;
 
-		if (args->msglen >= MAXMSGLEN)
+		if (args->msglen > MAXMSGLEN)
 			return -E2BIG;
 	}