[libdvdnav-devel] [PATCH] sprintf -> strcpy

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Wed Sep 9 09:57:58 CEST 2015


On Wed,  9 Sep 2015 10:11:16 +0300, Petri Hintukainen wrote:

> -    sprintf( filename, "/VIDEO_TS/VIDEO_TS.VOB" );
> +    strcpy( filename, "/VIDEO_TS/VIDEO_TS.VOB" );
[etc]

I would not use either. I would use strncpy instead.


More information about the libdvdnav-devel mailing list