Ignore:
Timestamp:
Jul 29, 2006 8:29:24 PM (18 years ago)
Author:
bennylp
Message:

Another take at fixing 64bit problems. PJ_MAX_OBJ_NAME is increased to 32 chars (from 16), and check all those sprintf's especially the ones with "%p" format.

File:
1 edited

Legend:

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

    r612 r635  
    290290    pjsua_acc_config cfg; 
    291291    struct transport_data *t = &pjsua_var.tpdata[tid]; 
    292     char uri[62]; 
     292    char uri[PJSIP_MAX_URL_SIZE]; 
    293293 
    294294    /* ID must be valid */ 
     
    301301 
    302302    /* Build URI for the account */ 
    303     pj_ansi_sprintf(uri, "<sip:%.*s:%d;transport=%s>",  
    304                          (int)t->local_name.host.slen, 
    305                          t->local_name.host.ptr, 
    306                          t->local_name.port, 
    307                          pjsip_transport_get_type_name(t->type)); 
     303    pj_ansi_snprintf(uri, PJSIP_MAX_URL_SIZE, 
     304                     "<sip:%.*s:%d;transport=%s>",  
     305                     (int)t->local_name.host.slen, 
     306                     t->local_name.host.ptr, 
     307                     t->local_name.port, 
     308                     pjsip_transport_get_type_name(t->type)); 
    308309 
    309310    cfg.id = pj_str(uri); 
Note: See TracChangeset for help on using the changeset viewer.