Ignore:
Timestamp:
Oct 10, 2003, 5:12:30 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
fe6f1d3
Parents:
f4d0975
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfaim/buddylist.c

    r862371b re374dee  
    66#define FAIM_INTERNAL
    77#include <aim.h>
     8
     9#include <string.h>
    810
    911/*
     
    233235 *
    234236 * Oncoming Buddy notifications contain a subset of the
    235  * user information structure.  Its close enough to run
    236  * through aim_extractuserinfo() however.
     237 * user information structure.  It's close enough to run
     238 * through aim_info_extract() however.
    237239 *
    238240 * Although the offgoing notification contains no information,
    239  * it is still in a format parsable by extractuserinfo.
     241 * it is still in a format parsable by aim_info_extract().
    240242 *
    241243 */
    242244static int buddychange(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
    243245{
     246        int ret = 0;
    244247        aim_userinfo_t userinfo;
    245248        aim_rxcallback_t userfunc;
    246249
    247         aim_extractuserinfo(sess, bs, &userinfo);
     250        aim_info_extract(sess, bs, &userinfo);
    248251
    249252        if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
    250                 return userfunc(sess, rx, &userinfo);
    251 
    252         return 0;
     253                ret = userfunc(sess, rx, &userinfo);
     254
     255        aim_info_free(&userinfo);
     256
     257        return ret;
    253258}
    254259
     
    270275        mod->version = 0x0001;
    271276        mod->toolid = 0x0110;
    272         mod->toolversion = 0x047b;
     277        mod->toolversion = 0x0629;
    273278        mod->flags = 0;
    274279        strncpy(mod->name, "buddylist", sizeof(mod->name));
Note: See TracChangeset for help on using the changeset viewer.