summaryrefslogtreecommitdiff
path: root/common/JackNetAdapter.cpp
diff options
context:
space:
mode:
authorsletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2009-02-20 14:40:56 +0000
committersletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2009-02-20 14:40:56 +0000
commit5bbc8e99c82d2089e4a12d37b9aaf46fe4397c86 (patch)
treee105861be9bba8cc71130d244c0c2aff4eb0f4be /common/JackNetAdapter.cpp
parent8b0e453d73856d8c8373b7e2409bef28e0936dae (diff)
downloadjack2-5bbc8e99c82d2089e4a12d37b9aaf46fe4397c86.tar.gz
Change fMulticastIP handling in JackNetInterface.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3330 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'common/JackNetAdapter.cpp')
-rw-r--r--common/JackNetAdapter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/JackNetAdapter.cpp b/common/JackNetAdapter.cpp
index 9a90503b..e1f16bde 100644
--- a/common/JackNetAdapter.cpp
+++ b/common/JackNetAdapter.cpp
@@ -34,7 +34,6 @@ namespace Jack
//we can't call JackNetSlaveInterface constructor with some parameters before
//because we don't have full parametering right now
//parameters will be parsed from the param list, and then JackNetSlaveInterface will be filled with proper values
- fMulticastIP = new char[16];
strcpy ( fMulticastIP, DEFAULT_MULTICAST_IP );
uint port = DEFAULT_PORT;
GetHostName ( fParams.fName, JACK_CLIENT_NAME_SIZE );
@@ -60,10 +59,10 @@ namespace Jack
switch ( param->character )
{
case 'a' :
- if ( strlen ( param->value.str ) < 16 )
- strcpy ( fMulticastIP, param->value.str );
+ if (strlen (param->value.str) < 32)
+ strcpy(fMulticastIP, param->value.str);
else
- jack_error ( "Can't use multicast address %s, using default %s", param->value.ui, DEFAULT_MULTICAST_IP );
+ jack_error("Can't use multicast address %s, using default %s", param->value.ui, DEFAULT_MULTICAST_IP);
break;
case 'p' :
fSocket.SetPort ( param->value.ui );