From 2aa8e46934e7df2e5ac06bbdaf1e0ce4bcc913bc Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 29 Aug 2016 14:42:23 +0200 Subject: [PATCH] account_creator.c: fix phone --- coreapi/account_creator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/account_creator.c b/coreapi/account_creator.c index 8c2c4ce14..fa9d3b579 100644 --- a/coreapi/account_creator.c +++ b/coreapi/account_creator.c @@ -299,7 +299,7 @@ LinphoneAccountCreatorStatus linphone_account_creator_set_phone_number(LinphoneA { const LinphoneDialPlan* plan = linphone_dial_plan_by_ccc(country_code); int size = (int)strlen(phone_number); - if (size < plan->nnl) { + if (size < plan->nnl - 1) { return LinphoneAccountCreatorPhoneNumberTooShort; } else if (size > plan->nnl + 1) { return LinphoneAccountCreatorPhoneNumberTooLong;