summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-07-25 22:55:01 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-07-25 22:55:30 -0500
commit625045dcb147ad6818209d956e6cb0b65f6ab90e (patch)
tree203b4c5226965c39e2b405d9dd665f326548c9bb /src/voicecall.c
parent55279f16c22653ccb17f82ec702d784f7d3f1c29 (diff)
downloadofono-625045dcb147ad6818209d956e6cb0b65f6ab90e.tar.bz2
voicecall: Use defined constants
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 14b5d228..7b01c9c9 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2238,7 +2238,7 @@ void ofono_voicecall_notify(struct ofono_voicecall *vc,
if (v->call->clip_validity == CLIP_VALIDITY_NOT_AVAILABLE) {
v->call->phone_number.type = req->ph.type;
strncpy(v->call->phone_number.number, req->ph.number,
- 20);
+ OFONO_MAX_PHONE_NUMBER_LENGTH);
v->call->clip_validity = CLIP_VALIDITY_VALID;
}
@@ -3571,7 +3571,7 @@ int __ofono_voicecall_dial(struct ofono_voicecall *vc,
/* TODO: parse the tones to dial after call connected */
req->ph.type = addr_type;
- strncpy(req->ph.number, addr, 20);
+ strncpy(req->ph.number, addr, OFONO_MAX_PHONE_NUMBER_LENGTH);
vc->dial_req = req;
@@ -3729,7 +3729,7 @@ void __ofono_voicecall_set_alpha_and_icon_id(struct ofono_voicecall *vc,
req->icon_id = icon_id;
req->ph.type = addr_type;
- strncpy(req->ph.number, addr, 20);
+ strncpy(req->ph.number, addr, OFONO_MAX_PHONE_NUMBER_LENGTH);
vc->dial_req = req;