summaryrefslogtreecommitdiff
path: root/apps/app_followme.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-07 19:42:37 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-07 19:42:37 +0000
commit89cfbf467303d7455be7f2df6ab61f2c097bd919 (patch)
tree1b4e2ff9e9bb1668665eb65eb2b121655b12c339 /apps/app_followme.c
parente2383fba8ead509aa2994155ae7949dce58f6285 (diff)
fix an incorrect usage of scanf, where it should be using sscanf, instead,
which was causing asterisk to hang when loading this module (reported by blitzrage on IRC) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r--apps/app_followme.c5
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))