Changeset cf02dd6 for libfaim/search.c


Ignore:
Timestamp:
Dec 10, 2003, 3:20:45 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b1fe407
Parents:
8c46404
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfaim/search.c

    re374dee rcf02dd6  
    7878                searchaddr = (char *)snac2->data;
    7979
    80         tlvlist = aim_readtlvchain(bs);
    81         m = aim_counttlvchain(&tlvlist);
     80        tlvlist = aim_tlvlist_read(bs);
     81        m = aim_tlvlist_count(&tlvlist);
    8282
    83         /* XXX uhm. */
    84         while ((cur = aim_gettlv_str(tlvlist, 0x0001, j+1)) && j < m) {
     83        /* XXX uhm.
     84         * This is the only place that uses something other than 1 for the 3rd
     85         * parameter to aim_tlv_gettlv_whatever().
     86         */
     87        while ((cur = aim_tlv_getstr(tlvlist, 0x0001, j+1)) && j < m) {
    8588                buf = realloc(buf, (j+1) * (MAXSNLEN+1));
    8689
     
    9194        }
    9295
    93         aim_freetlvchain(&tlvlist);
     96        aim_tlvlist_free(&tlvlist);
    9497
    9598        if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
Note: See TracChangeset for help on using the changeset viewer.