[asterisk-commits] simon.perreault: branch group/v6-new r273928 - /team/group/v6-new/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 5 09:25:30 CDT 2010
Author: simon.perreault
Date: Mon Jul 5 09:25:25 2010
New Revision: 273928
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273928
Log:
Use ast_str_set() instead of ast_copy_string()
Modified:
team/group/v6-new/main/netsock2.c
Modified: team/group/v6-new/main/netsock2.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/netsock2.c?view=diff&rev=273928&r1=273927&r2=273928
==============================================================================
--- team/group/v6-new/main/netsock2.c (original)
+++ team/group/v6-new/main/netsock2.c Mon Jul 5 09:25:25 2010
@@ -101,14 +101,14 @@
"[%s]:%s" : "%s:%s", host, port);
break;
case AST_SOCKADDR_STR_ADDR:
- ast_copy_string(ast_str_buffer(str), host, ast_str_size(str));
+ ast_str_set(&str, 0, "%s", host);
break;
case AST_SOCKADDR_STR_HOST:
ast_str_set(&str, 0,
sa_tmp->ss.ss_family == AF_INET6 ? "[%s]" : "%s", host);
break;
case AST_SOCKADDR_STR_PORT:
- ast_copy_string(ast_str_buffer(str), port, ast_str_size(str));
+ ast_str_set(&str, 0, "%s", port);
break;
default:
ast_log(LOG_ERROR, "Invalid format\n");
More information about the asterisk-commits
mailing list