X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fservices_discovery%2Fsap.c;h=9e50499e0a0ab0607da9647640e44ef60a8fb2c3;hb=83a9495bed15c054a6ad56d134770908713b7847;hp=23b8c946238a85387737fb9b505ce951f5f1d5a7;hpb=6ee1e193fd896ab9a4729fde14f009d9ce629815;p=vlc diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c index 23b8c94623..9e50499e0a 100644 --- a/modules/services_discovery/sap.c +++ b/modules/services_discovery/sap.c @@ -352,7 +352,7 @@ static int OpenDemux( vlc_object_t *p_this ) psz_sdp = psz_sdp_new; i_read = stream_Read( p_demux->s, &psz_sdp[i_len], i_read_max ); - if( i_read < 0 ) + if( (int)i_read < 0 ) { msg_Err( p_demux, "cannot read SDP" ); goto error; @@ -361,7 +361,7 @@ static int OpenDemux( vlc_object_t *p_this ) psz_sdp[i_len] = '\0'; - if( i_read < i_read_max ) + if( (int)i_read < i_read_max ) break; // EOF } @@ -869,7 +869,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp ) if (strchr (psz_uri + 1, ':')) { host = psz_uri; - psz_uri[strlen (psz_uri)] = ']'; + strcat (psz_uri, "]"); } else host = psz_uri + 1; @@ -957,7 +957,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp ) psz_source_ip) == 2) { /* According to RFC4570, FQDNs can be used for source-filters, - * but -seriously- this is impractical */ + * but -seriously- this is impractical */ switch (ipv) { #ifdef AF_INET6