diff options
author | jstebbins <[email protected]> | 2010-11-07 16:29:59 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-11-07 16:29:59 +0000 |
commit | 2d54c1b563922337f00f857f4c233b858a73e79e (patch) | |
tree | 48b5ec0de2fcddbfa9aa7f87f3948bd778f7372e /macosx/Controller.m | |
parent | c1b2221da7932d900f328456829d36ff9a130f97 (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 'macosx/Controller.m')
-rw-r--r-- | macosx/Controller.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index 9c7f1999a..3cac7cc46 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -3158,8 +3158,10 @@ bool one_burned = FALSE; sub_config.offset = [[tempObject objectForKey:@"subtitleTrackSrtOffset"] intValue]; /* we need to srncpy file path and char code */ - strncpy(sub_config.src_filename, [[tempObject objectForKey:@"subtitleSourceSrtFilePath"] UTF8String], 128); - strncpy(sub_config.src_codeset, [[tempObject objectForKey:@"subtitleTrackSrtCharCode"] UTF8String], 40); + strncpy(sub_config.src_filename, [[tempObject objectForKey:@"subtitleSourceSrtFilePath"] UTF8String], 255); + sub_config.src_filename[255] = 0; + strncpy(sub_config.src_codeset, [[tempObject objectForKey:@"subtitleTrackSrtCharCode"] UTF8String], 39); + sub_config.src_codeset[39] = 0; sub_config.force = 0; sub_config.dest = PASSTHRUSUB; |