Skip to content
Snippets Groups Projects
Commit 89cfbf46 authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent e2383fba
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment