[asterisk-commits] trunk r32867 - /trunk/apps/app_followme.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Jun 7 12:42:38 MST 2006
Author: russell
Date: Wed Jun 7 14:42:37 2006
New Revision: 32867
URL: http://svn.digium.com/view/asterisk?rev=32867&view=rev
Log:
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)
Modified:
trunk/apps/app_followme.c
Modified: trunk/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_followme.c?rev=32867&r1=32866&r2=32867&view=diff
==============================================================================
--- trunk/apps/app_followme.c (original)
+++ trunk/apps/app_followme.c Wed Jun 7 14:42:37 2006
@@ -308,9 +308,10 @@
}
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))
More information about the asterisk-commits
mailing list