mirror of git://git.sysmocom.de/ofono
voicecall: Use cnap validity in get_properties
This commit is contained in:
parent
65776a6820
commit
28917262ed
|
@ -334,8 +334,7 @@ static void append_voicecall_properties(struct voicecall *v,
|
|||
const char *status;
|
||||
const char *callerid;
|
||||
const char *timestr;
|
||||
char buf[OFONO_MAX_CALLER_NAME_LENGTH + 1];
|
||||
char *name;
|
||||
const char *name;
|
||||
ofono_bool_t mpty;
|
||||
|
||||
status = call_status_to_string(call->status);
|
||||
|
@ -346,9 +345,7 @@ static void append_voicecall_properties(struct voicecall *v,
|
|||
else
|
||||
callerid = phone_number_to_string(&call->phone_number);
|
||||
|
||||
strncpy(buf, call->name, OFONO_MAX_CALLER_NAME_LENGTH);
|
||||
buf[OFONO_MAX_CALLER_NAME_LENGTH] = '\0';
|
||||
name = buf;
|
||||
name = cnap_to_string(call->name, call->cnap_validity);
|
||||
|
||||
ofono_dbus_dict_append(dict, "State", DBUS_TYPE_STRING, &status);
|
||||
|
||||
|
|
Loading…
Reference in New Issue