- Timestamp:
- Dec 30, 2015 11:52:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r4713 r5224 250 250 251 251 /* contact */ 252 info->contact.ptr = info->buf_ + total; 253 pj_strncpy(&info->contact, &buddy->contact, sizeof(info->buf_)-total); 254 total += info->contact.slen; 252 if (total < sizeof(info->buf_)) { 253 info->contact.ptr = info->buf_ + total; 254 pj_strncpy(&info->contact, &buddy->contact, sizeof(info->buf_) - total); 255 total += info->contact.slen; 256 } else { 257 info->contact = pj_str(""); 258 } 255 259 256 260 /* Presence status */
Note: See TracChangeset
for help on using the changeset viewer.