From 625045dcb147ad6818209d956e6cb0b65f6ab90e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 25 Jul 2011 22:55:01 -0500 Subject: voicecall: Use defined constants --- src/voicecall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/voicecall.c') 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; -- cgit v1.2.3