[vlc-devel] [vlc-commits] subtitles: support MicroDVD size extension
hugo at beauzee.fr
Wed Jun 29 14:00:40 CEST 2016
On 06/29/2016 01:49 PM, Jean-Baptiste Kempf wrote:
> On 29 Jun, Hugo Beauzée-Luyssen wrote :
>>> + char *value = strndup( &psz_subtitle, i_len );
>> Why strdup? atoi("123garbage") will return 123
> Are you _sure_ about that?
That's how I interpret «The atoi, atol, and atoll functions convert the
*initial* portion of the string pointed to by nptr to int» (emphasis mine)
My local toolchain seems to agree.
> With my kindest regards,
More information about the vlc-devel