changeset 4913:6c02ee2b471d

[gaim-migrate @ 5247] Fix a crash on receiving oscar direct connect messages. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 30 Mar 2003 20:02:28 +0000
parents a6e9cd5e853e
children 10a0917c1c0f
files src/protocols/oscar/ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/ft.c	Sun Mar 30 18:45:49 2003 +0000
+++ b/src/protocols/oscar/ft.c	Sun Mar 30 20:02:28 2003 +0000
@@ -650,7 +650,7 @@
 
 	aim_bstream_setpos(bs, 36);
 	/* XXX - create an aimbs_getnullstr function? */
-	snptr = aimbs_getstr(bs, MAXSNLEN);
+	snptr = aimbs_getstr(bs, 32); /* Next 32 bytes contain the sn, padded with null chars */
 
 	faimdprintf(sess, 2, "faim: OFT frame: handlehdr_odc: %04x / %04x / %s\n", payloadlength, flags, snptr);