Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit bad5c12

Browse files
authored
Fix owt sip call out fail issue 840 (#841)
1 parent 36101c2 commit bad5c12

File tree

1 file changed

+1
-1
lines changed
  • source/agent/sip/sipIn/sip_gateway/sipua/src

1 file changed

+1
-1
lines changed

source/agent/sip/sipIn/sip_gateway/sipua/src/sipua.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void sipua_call(struct sipua_entity *sipua, sipua_bool audio, sipua_bool video,
276276
call_data = mem_zalloc(sizeof(struct sipua_call_data), NULL);
277277
call_data->audio = NATURAL_BOOL(audio);
278278
call_data->video = NATURAL_BOOL(video);
279-
strcpy_s(call_data->calleeURI, sizeof(call_data->calleeURI), calleeURI);
279+
strncpy(call_data->calleeURI, calleeURI, sizeof(call_data->calleeURI));
280280

281281
mqueue_push(sipua->mq, SIPUA_CALL, call_data);
282282
return;

0 commit comments

Comments
 (0)