Ignore:
Timestamp:
Jan 17, 2013 10:09:09 AM (11 years ago)
Author:
bennylp
Message:

Really fix #1609 after better understanding about the problem. This changeset:

  • undo r4320
  • remove the reliance on NULL termination in sip_auth_client.c
  • add the NULL termination when printing tel: URI just in case other components use it
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_tel_uri.c

    r3553 r4322  
    183183    int printed; 
    184184    char *startbuf = buf; 
    185     char *endbuf = buf+size; 
     185    char *endbuf = buf+size-1; 
    186186    const pjsip_parser_const_t *pc = pjsip_parser_const(); 
    187187 
     
    217217        return -1; 
    218218    buf += printed; 
     219 
     220    *buf = '\0'; 
    219221 
    220222    return (buf-startbuf); 
Note: See TracChangeset for help on using the changeset viewer.