[libdvdnav-devel] [PATCH] sprintf -> strcpy
Petri Hintukainen
phintuka at gmail.com
Wed Sep 9 09:11:16 CEST 2015
---
src/dvd_reader.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/dvd_reader.c b/src/dvd_reader.c
index 5c8a8d7..490012d 100644
--- a/src/dvd_reader.c
+++ b/src/dvd_reader.c
@@ -812,7 +812,7 @@ static dvd_file_t *DVDOpenVOBUDF( dvd_reader_t *dvd, int title, int menu )
dvd_file_t *dvd_file;
if( title == 0 ) {
- sprintf( filename, "/VIDEO_TS/VIDEO_TS.VOB" );
+ strcpy( filename, "/VIDEO_TS/VIDEO_TS.VOB" );
} else {
sprintf( filename, "/VIDEO_TS/VTS_%02d_%d.VOB", title, menu ? 0 : 1 );
}
@@ -877,7 +877,7 @@ static dvd_file_t *DVDOpenVOBPath( dvd_reader_t *dvd, int title, int menu )
dvd_input_t dev;
if( title == 0 ) {
- sprintf( filename, "VIDEO_TS.VOB" );
+ strcpy( filename, "VIDEO_TS.VOB" );
} else {
sprintf( filename, "VTS_%02i_0.VOB", title );
}
@@ -945,7 +945,7 @@ dvd_file_t *DVDOpenFile( dvd_reader_t *dvd, int titlenum,
switch( domain ) {
case DVD_READ_INFO_FILE:
if( titlenum == 0 ) {
- sprintf( filename, "/VIDEO_TS/VIDEO_TS.IFO" );
+ strcpy( filename, "/VIDEO_TS/VIDEO_TS.IFO" );
} else {
sprintf( filename, "/VIDEO_TS/VTS_%02i_0.IFO", titlenum );
}
@@ -953,7 +953,7 @@ dvd_file_t *DVDOpenFile( dvd_reader_t *dvd, int titlenum,
break;
case DVD_READ_INFO_BACKUP_FILE:
if( titlenum == 0 ) {
- sprintf( filename, "/VIDEO_TS/VIDEO_TS.BUP" );
+ strcpy( filename, "/VIDEO_TS/VIDEO_TS.BUP" );
} else {
sprintf( filename, "/VIDEO_TS/VTS_%02i_0.BUP", titlenum );
}
@@ -1016,7 +1016,7 @@ static int DVDFileStatVOBUDF( dvd_reader_t *dvd, int title,
int n;
if( title == 0 )
- sprintf( filename, "/VIDEO_TS/VIDEO_TS.VOB" );
+ strcpy( filename, "/VIDEO_TS/VIDEO_TS.VOB" );
else
sprintf( filename, "/VIDEO_TS/VTS_%02d_%d.VOB", title, menu ? 0 : 1 );
@@ -1062,7 +1062,7 @@ static int DVDFileStatVOBPath( dvd_reader_t *dvd, int title,
int n;
if( title == 0 )
- sprintf( filename, "VIDEO_TS.VOB" );
+ strcpy( filename, "VIDEO_TS.VOB" );
else
sprintf( filename, "VTS_%02d_%d.VOB", title, menu ? 0 : 1 );
@@ -1121,14 +1121,14 @@ int DVDFileStat( dvd_reader_t *dvd, int titlenum,
switch( domain ) {
case DVD_READ_INFO_FILE:
if( titlenum == 0 )
- sprintf( filename, "/VIDEO_TS/VIDEO_TS.IFO" );
+ strcpy( filename, "/VIDEO_TS/VIDEO_TS.IFO" );
else
sprintf( filename, "/VIDEO_TS/VTS_%02i_0.IFO", titlenum );
break;
case DVD_READ_INFO_BACKUP_FILE:
if( titlenum == 0 )
- sprintf( filename, "/VIDEO_TS/VIDEO_TS.BUP" );
+ strcpy( filename, "/VIDEO_TS/VIDEO_TS.BUP" );
else
sprintf( filename, "/VIDEO_TS/VTS_%02i_0.BUP", titlenum );
--
2.1.4
More information about the libdvdnav-devel
mailing list