voicecall: Use cnap validity in get_properties

This commit is contained in:
Denis Kenzior 2010-12-12 05:11:30 -06:00
parent 65776a6820
commit 28917262ed
1 changed files with 2 additions and 5 deletions

View File

@ -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);