[vlc-devel] [PATCH] demux: ts: fix debug message of non-terminated string

Francois Cartegnie fcvlcdev at free.fr
Fri Apr 29 19:11:49 CEST 2016


Le 29/04/2016 à 18:18, Hannes Domani a écrit :
> +                        char reg[5];
> +                        memcpy( reg, p_dr->p_data, 4 );
> +                        reg[4] = 0;
>                          registration_type = regs[i].reg;
> -                        msg_Dbg( p_demux, PMT_DESC_INDENT "%4.4s registration", p_dr->p_data );
> +                        msg_Dbg( p_demux, PMT_DESC_INDENT "%4.4s registration", reg );

Nope.
Format string is sufficient.

Francois



More information about the vlc-devel mailing list