summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 7b01c9c9..23976afa 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2236,10 +2236,13 @@ void ofono_voicecall_notify(struct ofono_voicecall *vc,
}
if (v->call->clip_validity == CLIP_VALIDITY_NOT_AVAILABLE) {
+ char *number = v->call->phone_number.number;
+
v->call->phone_number.type = req->ph.type;
- strncpy(v->call->phone_number.number, req->ph.number,
+ strncpy(number, req->ph.number,
OFONO_MAX_PHONE_NUMBER_LENGTH);
v->call->clip_validity = CLIP_VALIDITY_VALID;
+ number[OFONO_MAX_PHONE_NUMBER_LENGTH] = '\0';
}
v->message = req->message;