mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Fix invalid read in tester.
This commit is contained in:
parent
579485228c
commit
65317c1f56
1 changed files with 2 additions and 1 deletions
|
|
@ -868,12 +868,13 @@ static void long_term_presence_phone_alias(void) {
|
|||
}
|
||||
|
||||
static const char* random_phone_number(void) {
|
||||
static char phone[10];
|
||||
static char phone[11];
|
||||
int i;
|
||||
phone[0] = '+';
|
||||
for (i = 1; i < 10; i++) {
|
||||
phone[i] = '0' + rand() % 10;
|
||||
}
|
||||
phone[10] = '\0';
|
||||
return phone;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue