Changeset 5926 for pjproject


Ignore:
Timestamp:
Jan 3, 2019 12:56:58 AM (6 years ago)
Author:
ming
Message:

Re #2147 (misc): set wholeMsg string of SipTxData? to the whole message instead of the whole buffer.

Thanks to Michael Loeffler for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/siptypes.cpp

    r5821 r5926  
    534534    info        = pjsip_tx_data_get_info(&tdata); 
    535535    pjsip_tx_data_encode(&tdata); 
    536     wholeMsg    = string(tdata.buf.start, tdata.buf.end - tdata.buf.start); 
     536    wholeMsg    = string(tdata.buf.start, tdata.buf.cur - tdata.buf.start); 
    537537    if (pj_sockaddr_has_addr(&tdata.tp_info.dst_addr)) { 
    538538        pj_sockaddr_print(&tdata.tp_info.dst_addr, straddr, sizeof(straddr), 3); 
Note: See TracChangeset for help on using the changeset viewer.