Fix undefined variable use
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 1 Sep 2007 13:37:08 +0000 (13:37 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 1 Sep 2007 13:37:08 +0000 (13:37 +0000)
modules/stream_out/rtp.c

index 97860a7..8ff72b3 100644 (file)
@@ -427,7 +427,7 @@ static int Open( vlc_object_t *p_this )
             if( p_sys->i_ttl > 0 )
                 sprintf( access, "udp{raw,rtcp,ttl=%d}", p_sys->i_ttl );
             else
             if( p_sys->i_ttl > 0 )
                 sprintf( access, "udp{raw,rtcp,ttl=%d}", p_sys->i_ttl );
             else
-                strcat( access, "udp{raw,rtcp}" );
+                strcpy( access, "udp{raw,rtcp}" );
 
             /* IPv6 needs brackets if not already present */
             if (strchr( p_sys->psz_destination, ':' ) != NULL )
 
             /* IPv6 needs brackets if not already present */
             if (strchr( p_sys->psz_destination, ':' ) != NULL )