Changeset 2566 for pjproject/trunk
- Timestamp:
- Apr 2, 2009 12:15:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2507 r2566 3132 3132 pjsua_buddy_info binfo; 3133 3133 pjsua_buddy_get_info(result.nb_result-1, &binfo); 3134 uri = binfo.uri.ptr; 3134 tmp.ptr = buf; 3135 pj_strncpy(&tmp, &binfo.uri, sizeof(buf)); 3135 3136 } 3136 3137 3137 3138 } else if (result.uri_result) { 3138 uri = result.uri_result; 3139 tmp = pj_str(result.uri_result); 3140 } else { 3141 tmp.slen = 0; 3139 3142 } 3140 3143 3141 tmp = pj_str(uri);3142 3144 pjsua_call_make_call( current_acc, &tmp, 0, NULL, NULL, NULL); 3143 3145 break; … … 3163 3165 } 3164 3166 pjsua_buddy_get_info(result.nb_result-1, &binfo); 3165 uri = binfo.uri.ptr; 3167 tmp.ptr = buf; 3168 pj_strncpy(&tmp, &binfo.uri, sizeof(buf)); 3166 3169 } else { 3167 uri = result.uri_result;3170 tmp = pj_str(result.uri_result); 3168 3171 } 3169 3172 … … 3171 3174 pj_status_t status; 3172 3175 3173 tmp = pj_str(uri);3174 3176 status = pjsua_call_make_call(current_acc, &tmp, 0, NULL, 3175 3177 NULL, NULL); … … 3209 3211 pjsua_buddy_info binfo; 3210 3212 pjsua_buddy_get_info(result.nb_result-1, &binfo); 3211 uri = binfo.uri.ptr; 3213 tmp.ptr = buf; 3214 pj_strncpy_with_null(&tmp, &binfo.uri, sizeof(buf)); 3215 uri = buf; 3212 3216 } 3213 3217 … … 3766 3770 pjsua_buddy_info binfo; 3767 3771 pjsua_buddy_get_info(result.nb_result-1, &binfo); 3768 uri = binfo.uri.ptr; 3772 tmp.ptr = buf; 3773 pj_strncpy_with_null(&tmp, &binfo.uri, sizeof(buf)); 3774 uri = buf; 3769 3775 } 3770 3776
Note: See TracChangeset
for help on using the changeset viewer.