Commit 63750559 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not concatenate port numbers

parent dacaa685
......@@ -69,10 +69,9 @@ void Program::SetRTP(bool b){b_rtp = b;}
void Program::SetHasPlGroup(bool b){b_has_pl_group = b ;}
void Program::SetPort(const char* p)
int i_port=atoi(p);
char psz_port[6];
snprintf(psz_port, sizeof (psz_port), "%i",i_port);
port +=psz_port;
snprintf(psz_port, sizeof (psz_port), "%d", atoi(p));
port = psz_port;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment