diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-07 19:42:37 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-07 19:42:37 +0000 |
commit | 15010e696fcbff827d47d679694e23f3add366a6 (patch) | |
tree | 1b4e2ff9e9bb1668665eb65eb2b121655b12c339 /apps | |
parent | 014f72546c2a90d7ef3da1e46c57b0f0cf01356e (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: http://svn.digium.com/svn/asterisk/trunk@32867 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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)) |