summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-12-12 05:11:30 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-12-16 18:40:18 -0600
commit28917262ede143819825657b9d569046e9025682 (patch)
tree187deb5b93ba87e05a62b654bd5a76aa0189c0a2 /src
parent65776a68204e476e58f729b5a6f411d6dcb31cb2 (diff)
downloadofono-28917262ede143819825657b9d569046e9025682.tar.bz2
voicecall: Use cnap validity in get_properties
Diffstat (limited to 'src')
-rw-r--r--src/voicecall.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 3d238266..eb329d81 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -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);