UNREGISTER instead of REGISTER in unload_module().
[asterisk/asterisk.git] / res / res_config_sqlite.c
index 611330f..3956410 100644 (file)
@@ -805,7 +805,7 @@ static int cdr_handler(struct ast_cdr *cdr)
                        if (!tmp) {
                                continue;
                        }
-                       if (sscanf(tmp, "%d", &scannum) == 1) {
+                       if (sscanf(tmp, "%30d", &scannum) == 1) {
                                ast_str_append(&sql1, 0, "%s%s", first ? "" : ",", col->name);
                                ast_str_append(&sql2, 0, "%s%d", first ? "" : ",", scannum);
                        }