comparison src/protocols/oscar/ft.c @ 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 9e50494f63a1
children ac9ca88d4b25
comparison
equal deleted inserted replaced
4912:a6e9cd5e853e 4913:6c02ee2b471d
648 aim_bstream_setpos(bs, 30); 648 aim_bstream_setpos(bs, 30);
649 flags = aimbs_get16(bs); 649 flags = aimbs_get16(bs);
650 650
651 aim_bstream_setpos(bs, 36); 651 aim_bstream_setpos(bs, 36);
652 /* XXX - create an aimbs_getnullstr function? */ 652 /* XXX - create an aimbs_getnullstr function? */
653 snptr = aimbs_getstr(bs, MAXSNLEN); 653 snptr = aimbs_getstr(bs, 32); /* Next 32 bytes contain the sn, padded with null chars */
654 654
655 faimdprintf(sess, 2, "faim: OFT frame: handlehdr_odc: %04x / %04x / %s\n", payloadlength, flags, snptr); 655 faimdprintf(sess, 2, "faim: OFT frame: handlehdr_odc: %04x / %04x / %s\n", payloadlength, flags, snptr);
656 656
657 if (flags & 0x0008) { 657 if (flags & 0x0008) {
658 if ((userfunc = aim_callhandler(sess, conn, AIM_CB_FAM_OFT, AIM_CB_OFT_DIRECTIMTYPING))) 658 if ((userfunc = aim_callhandler(sess, conn, AIM_CB_FAM_OFT, AIM_CB_OFT_DIRECTIMTYPING)))