]> git.sesse.net Git - vlc/commitdiff
Fix segfault in RTSP mode
authorClément Stenac <zorglub@videolan.org>
Wed, 24 Nov 2004 12:14:23 +0000 (12:14 +0000)
committerClément Stenac <zorglub@videolan.org>
Wed, 24 Nov 2004 12:14:23 +0000 (12:14 +0000)
modules/stream_out/rtp.c

index 59dc36cd3b1300f8d609f10a2536ebee1fd4ef5b..108b7d67d53a4c62b39fcdb99a29da77fde33b14 100644 (file)
@@ -389,7 +389,7 @@ static int Open( vlc_object_t *p_this )
 
         char *psz_rtpmap;
         char access[100];
-        char url[strlen( p_sys->psz_destination ) + 1 + 12 + 1];
+        char url[p_sys->psz_destination ? strlen( p_sys->psz_destination ) + 1 + 12+1 : 14];
 
         /* Check muxer type */
         if( !strncasecmp( val.psz_string, "ps", 2 ) || !strncasecmp( val.psz_string, "mpeg1", 5 ) )