mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	convert the final clients of ast_build_string to use ast_str_*()
Now the only module left using it is chan_sip.c git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -137,7 +137,7 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size) | ||||
| static int dumpchan_exec(struct ast_channel *chan, void *data) | ||||
| { | ||||
| 	struct ast_module_user *u; | ||||
| 	char vars[BUFSIZ * 4]; | ||||
| 	struct ast_str *vars = ast_str_alloca(BUFSIZ * 4); /* XXX very large! */ | ||||
| 	char info[1024]; | ||||
| 	int level = 0; | ||||
| 	static char *line = "================================================================================"; | ||||
| @@ -147,10 +147,10 @@ static int dumpchan_exec(struct ast_channel *chan, void *data) | ||||
| 	if (!ast_strlen_zero(data))  | ||||
| 		level = atoi(data); | ||||
|  | ||||
| 	pbx_builtin_serialize_variables(chan, vars, sizeof(vars)); | ||||
| 	pbx_builtin_serialize_variables(chan, &vars); | ||||
| 	serialize_showchan(chan, info, sizeof(info)); | ||||
| 	if (option_verbose >= level) | ||||
| 		ast_verbose("\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n", chan->name, line, info, vars, line); | ||||
| 		ast_verbose("\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n", chan->name, line, info, vars->str, line); | ||||
|  | ||||
| 	ast_module_user_remove(u); | ||||
| 	 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user