AST-2009-005
[asterisk/asterisk.git] / apps / app_followme.c
index 6764833..d460f75 100644 (file)
@@ -334,7 +334,7 @@ static int reload_followme(int reload)
        featuredigittostr = ast_variable_retrieve(cfg, "general", "featuredigittimeout");
 
        if (!ast_strlen_zero(featuredigittostr)) {
-               if (!sscanf(featuredigittostr, "%d", &featuredigittimeout))
+               if (!sscanf(featuredigittostr, "%30d", &featuredigittimeout))
                        featuredigittimeout = 5000;
        }
 
@@ -956,7 +956,7 @@ static struct call_followme *find_realtime(const char *name)
                if (!(numstr = ast_variable_retrieve(cfg, catg, "phonenumber"))) {
                        continue;
                }
-               if (!(timeoutstr = ast_variable_retrieve(cfg, catg, "timeout")) || sscanf(timeoutstr, "%d", &timeout) != 1 || timeout < 1) {
+               if (!(timeoutstr = ast_variable_retrieve(cfg, catg, "timeout")) || sscanf(timeoutstr, "%30d", &timeout) != 1 || timeout < 1) {
                        timeout = 25;
                }
                /* This one has to exist; it was part of the query */