Changeset 3368


Ignore:
Timestamp:
Nov 16, 2010 7:01:25 AM (10 years ago)
Author:
bennylp
Message:

Re #1020: fixed pjsua_acc.c, wrong allocation length for outbound contact.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r3367 r3368  
    10671067        len = acc->contact.slen + acc->rfc5626_instprm.slen + 
    10681068              acc->rfc5626_regprm.slen; 
    1069         reg_contact.ptr = (char*) pj_pool_alloc(acc->pool, reg_contact.slen); 
     1069        reg_contact.ptr = (char*) pj_pool_alloc(acc->pool, len); 
    10701070 
    10711071        pj_strcpy(&reg_contact, &acc->contact); 
Note: See TracChangeset for help on using the changeset viewer.