comparison libfaim/aim_im.c @ 283:0f14e6d8a51b

[gaim-migrate @ 293] - Good fun things here. Sometimes I think Adam does things just to make it difficult for me, I swear (j/k :) ). - I moved all the .h files into the faim/ directory because I'm tired of changing faim/aim.h to just aim.h every time Adam makes an update. - libfaim can now send messages much longer than WinAIM or TOC can. But, the length checking code is still in conversation.c, and I haven't changed it yet, mostly because I'm lazy. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 31 May 2000 03:20:11 +0000
parents 6ced2f1c8b24
children bafaf1b68f9a
comparison
equal deleted inserted replaced
282:918db59d3814 283:0f14e6d8a51b
3 * 3 *
4 * The routines for sending/receiving Instant Messages. 4 * The routines for sending/receiving Instant Messages.
5 * 5 *
6 */ 6 */
7 7
8 #include <aim.h> 8 #include <faim/aim.h>
9 9
10 /* 10 /*
11 * Send an ICBM (instant message). 11 * Send an ICBM (instant message).
12 * 12 *
13 * 13 *
23 { 23 {
24 24
25 int curbyte,i; 25 int curbyte,i;
26 struct command_tx_struct *newpacket; 26 struct command_tx_struct *newpacket;
27 27
28 if (!(newpacket = aim_tx_new(0x0002, conn, 1152))) 28 if (strlen(msg) >= MAXMSGLEN)
29 return -1;
30
31 if (!(newpacket = aim_tx_new(0x0002, conn, strlen(msg)+256)))
29 return -1; 32 return -1;
30 33
31 newpacket->lock = 1; /* lock struct */ 34 newpacket->lock = 1; /* lock struct */
32 35
33 curbyte = 0; 36 curbyte = 0;