diff options
-rw-r--r-- | apps/app_followme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c index 942f0529b..5b6a8f184 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -308,9 +308,10 @@ static int reload_followme(void) } featuredigittostr = ast_variable_retrieve(cfg, "general", "featuredigittimeout"); - if (!ast_strlen_zero(featuredigittostr)) - if (!scanf("%d", &featuredigittimeout)) + if (!ast_strlen_zero(featuredigittostr)) { + if (!sscanf(featuredigittostr, "%d", &featuredigittimeout)) featuredigittimeout = 5000; + } takecallstr = ast_variable_retrieve(cfg, "general", "takecall"); if (!ast_strlen_zero(takecallstr)) |