X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fstream_out%2Frtp.c;h=fb14e45869e4c9b72bfe04b1e61d5d6d3c4e71b2;hb=1715ecf8b022e7abe603fb2fde492f245e3d3ccb;hp=112df4b551ab90e431ac4c1bf0eecc0ae75ac1ee;hpb=065691d718276f9e42506ccdc6887d362f331018;p=vlc diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index 112df4b551..fb14e45869 100644 --- a/modules/stream_out/rtp.c +++ b/modules/stream_out/rtp.c @@ -1791,8 +1791,7 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, snprintf( psz_access, sizeof( psz_access ), "udp{raw,ttl=%d}", p_sys->i_ttl ); else - strncpy( psz_access, "udp{raw}", sizeof( psz_access ) ); - psz_access[sizeof( psz_access ) - 1] = '\0'; + strlcpy( psz_access, "udp{raw}", sizeof( psz_access ) ); snprintf( psz_url, sizeof( psz_url ), ( strchr( ip, ':' ) != NULL ) ? "[%s]:%d" : "%s:%d",