summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-11-07 16:29:59 +0000
committerjstebbins <[email protected]>2010-11-07 16:29:59 +0000
commit2d54c1b563922337f00f857f4c233b858a73e79e (patch)
tree48b5ec0de2fcddbfa9aa7f87f3948bd778f7372e /test/test.c
parentc1b2221da7932d900f328456829d36ff9a130f97 (diff)
Allow longer SRT filename paths.
Bump from 128 to 256. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3655 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c
index e0ec36c8a..d6d0f5729 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1968,8 +1968,10 @@ static int HandleEvents( hb_handle_t * h )
sub_config.default_track =
( srtdefault != -1 ) && ( srtdefault == i + 1 );
sub_config.force = 0;
- strncpy( sub_config.src_filename, srtfile[i], 128);
- strncpy( sub_config.src_codeset, codeset, 40);
+ strncpy( sub_config.src_filename, srtfile[i], 255);
+ sub_config.src_filename[255] = 0;
+ strncpy( sub_config.src_codeset, codeset, 39);
+ sub_config.src_codeset[39] = 0;
sub_config.offset = offset;
hb_srt_add( job, &sub_config, lang);